HH\ImmSet::getIterator

Returns an iterator that points to beginning of the current ImmSet.

Description

public function getIterator(): KeyedIterator<mixed,Tv>

Returns an iterator that points to beginning of the current ImmSet.

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

Examples

See Set::getIterator for usage examples.