Emojicode Documentation 1.0 beta 2

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 πŸ‘.

πŸ”½β“

❓ πŸ”½ ➑️ πŸ‘Œ

Whether the iterator has more elements to provide.