# Get a new iterator on the map.
fun iterator: MapIterator[K, V] is abstract
lib/core/collection/abstract_collection.nit:582,2--583,44
redef fun iterator do return new CoupleMapIterator[K,V](couple_iterator)
lib/core/collection/abstract_collection.nit:1284,2--73
# Nodes are iterated in the same order in which they were added to the tree.
# O(n)
#
# var tree = new BinTreeMap[Int, String]
# for i in [4, 2, 1, 5, 3] do tree[i] = "n{i}"
# var keys = new Array[Int]
# for k, v in tree do
# keys.add k
# end
# assert keys == [4, 2, 1, 5, 3]
redef fun iterator do return new BinTreeMapIterator[K, E](self)
lib/trees/bintree.nit:366,2--376,64