Get a new iterator on the map.

Property definitions

core $ MapRead :: iterator
	# Get a new iterator on the map.
	fun iterator: MapIterator[K, V] is abstract
lib/core/collection/abstract_collection.nit:582,2--583,44

core $ CoupleMap :: iterator
	redef fun iterator do return new CoupleMapIterator[K,V](couple_iterator)
lib/core/collection/abstract_collection.nit:1284,2--73

counter $ Counter :: iterator
	redef fun iterator do return map.iterator
lib/counter/counter.nit:53,2--42

core $ HashMap :: iterator
	redef fun iterator do return new HashMapIterator[K,V](self)
lib/core/collection/hash_collection.nit:246,2--60

trees $ BinTreeMap :: iterator
	# 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