iterator

open operator override fun iterator(): MutableIterator<E>

Returns an iterator over the elements contained in this set. The iterator traverses the elements in their natural order (which is the order in which the enum constants are declared). The returned Iterator is a "snapshot" iterator that will never throw [ ]; the elements are traversed as they existed when this call was invoked.

Return

an iterator over the elements contained in this set