HH\ImmSet::getIterator

Returns an iterator that points to beginning of the current ImmSet

public function getIterator(): 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

Examples

See [Set::getIterator](</hack/reference/class/Set/getIterator/#examples>) for usage examples.