SetValues[A: A, H: HashFunction[A!] val, S: HashSet[A, H] #read]¶
An iterator over the values in a set.
Implements¶
- Iterator[S->A] ref
Constructors¶
create¶
Creates an iterator for the given set.
Parameters¶
- set: S
Returns¶
- SetValues[A, H, S] 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 set.
Returns¶
- Bool val
next¶
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.
Returns¶
- S->A ?