Emojicode Documentation 1.0 beta 2

Protocol 🐽🐚ElementβšͺοΈπŸ†

Protocol defining random-access.

Types representing a collection whose elements can be accessed by 🐽 randomly should conform to this protocol. The number of elements must be finite and returned by πŸ“.

Methods

πŸ½β—οΈ

❗️ 🐽 🎍πŸ₯‘ index πŸ”’ ➑️ Element

Gets the item at index. If the index is invalid the behavior is up to the conforming type.

πŸ“β“

❓ πŸ“ ➑️ πŸ”’

Returns the number of items in the collection.