| do [block] -> none | Invokes the given block on each element of this instance. |
|---|---|
| size -> int | The number of elements in this instance. |
| operator == other/Collection -> bool | Whether this instance is equal to other. |
| is-empty -> bool | Whether this instance is empty. |
| every [predicate] -> bool | Whether all elements in the collection satisfy the given predicate. |
| any [predicate] -> bool | Whether at least one element in the collection satisfies the given predicate. |
| contains element/any -> bool | Whether this instance contains the given element. |
| reduce [block] -> any | Takes all elements and combines them using block. |
| reduce --initial/any [block] -> any | Takes all elements and combines them using block. |
[1, 2].do: debug it // Prints 1, 2
== operator for comparison.