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
KeyedIterator<arraykey,Tv>- AKeyedIteratorthat allows you to traverse the currentImmSet.
Examples
See [Set::getIterator](</hack/reference/class/Set/getIterator/#examples>) for usage examples.