Returns an iterator that points to beginning of the current ImmSet

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

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

Return Values

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