Understanding several concepts from a julia> ?filter example

All you need to know is that dictionaries are iterators of pairs and that each pair has a pair.first (key) and pair.second (value). Everything else follows from that.

If you are unsure about the iterator items, you can always collect(iterator) to get a vector of items.

2 Likes