Skip to content

Commit e027f78

Browse files
committed
more docs
1 parent c881438 commit e027f78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ A summary of major internal changes from 0.3 to 0.4 is as follows:
4343
change the external API.
4444
- `treemap` and `treemap!` have been replaced with versions that depend on [`MapNode`](@ref).
4545

46+
# Why aren't all iterators trees by default?
47+
Iteration is very widely implemented for Julia types and there are many types which define iteration
48+
but which don't make sense as trees. Major examples in `Base` alone include `Number` and `String`,
49+
`Char` and `Task`. If there are this many examples in `Base` there are likely to be a lot more in
50+
other packages.
51+
4652
# Why does `treemap` return a special node type?
4753
As described above, older versions of this package conflate tree nodes with values attached to them.
4854
This makes sense for certain built-in types, particularly arrays, but it imposes constraints on what

0 commit comments

Comments
 (0)