MapPairs[K: K, V: V, H: HashFunction[K] val, M: HashMap[K, V, H] #read]¶
An iterator over the keys and values in a map.
class ref MapPairs[K: K, V: V, H: HashFunction[K] val, M: HashMap[K, V, H] #read] is
Iterator[(M->K , M->V)] ref
Implements¶
- Iterator[(M->K , M->V)] ref
Constructors¶
create¶
Creates an iterator for the given map.
Parameters¶
- map: M
Returns¶
- MapPairs[K, V, H, M] ref^
Public Functions¶
has_next¶
True if it believes there are remaining entries. May not be right if values were added or removed from the map.
Returns¶
- Bool val
next¶
Returns the next entry, or raises an error if there isn't one. If entries are added during iteration, this may not return all entries.
Returns¶
- (M->K , M->V) ?