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