HH\ImmSet::getIterator

Returns an iterator that points to beginning of the current ImmSet

public function getIterator(): HH\Rx\KeyedIterator<arraykey, Tv>;

The keys and values when iterating through the KeyedIterator will be identical since ImmSets have no keys, the values are used as keys.

Returns

  • HH\Rx\KeyedIterator<arraykey, Tv> - A KeyedIterator that allows you to traverse the current ImmSet.

Examples

See Set::getIterator for usage examples.