Protocol π‘πElementβͺοΈπ
Protocol defining an iterators interface.
Types conforming to π‘ can iterate a collection.
To get the items from an iterator call the π½ method on it, until π½β returns π which indicates that there are no more items.
Methods
π½βοΈ
βοΈ π½ β‘οΈ Element
Returns the next object. Call this method only if π½β previously returned π.