Immutable empty collection.
class empty[value element type]
implement immutable list[element type] skip(nonnegative count)
implement immutable list[element type] slice(nonnegative begin, nonnegative end)
Declaration: empty
Announcements: empty
public empty()
Declaration: constructor
Declaration: size
Declaration: is empty
Specifies whether the collection has more than zero elements.
Shortcut for !is_empty.
implement boolean is not empty
Declaration: is not empty
Declaration: first
Direct overrides: first
Declaration: last
Direct overrides: last
Declaration: contains
Direct overrides: set
Read the list's element for the specified index.
implement implicit readonly reference[element type] get(nonnegative index) pure
Declaration: constructor
Direct overrides: list
Enumerates elements in some collection-defined order.
This method returns a snapshot of the collection state, so subsequent mutations
of the collection do not cause changes in the returned list.
implement immutable list[element type] elements()
Declaration: elements
Declaration: frozen copy
Skips over the specified count of elements and returns an immutable slice
that begins with count and ends with the end of this list.
Declaration: skip
Direct overrides: list
Returns an immutable sublist with the given the starting and ending indices.
The starting index is inclusive, the ending is exclusive.
Declaration: slice
Direct overrides: list
Returns an immutable list with the order of the elements reversed.
implement immutable list[element type] reverse()
Declaration: reverse
Direct overrides: list
Check whether the list has at least one element that satisfies the predicate.
implement boolean has(predicate[element type] the predicate) pure
Declaration: has
Direct overrides: list