class base range
private nonnegative the begin
private nonnegative the end
Start of the range.
implement nonnegative begin()
End of the range; greater or equal than start.
implement nonnegative end()
The number of elements in the collection.
implement nonnegative size()
Specifies whether the collection has zero elements.
implement boolean is empty
Specifies whether the collection has more than zero elements. Shortcut for !is_empty.
implement boolean is not empty
Access the first element of the list. Assumes the list is not empty.
implement nonnegative first()
Access the last element of the list. Assumes the list is not empty.
implement nonnegative last()
Read the list's element for the specified index.
implement implicit readonly reference[nonnegative] get(nonnegative index) pure
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 range elements()
Returns an immutable copy of this list.
implement range frozen copy()
Returns an immutable list with the order of the elements reversed.
implement immutable list[nonnegative] reverse()
Check whether the list has at least one element that satisfies the predicate.
implement boolean has(predicate[nonnegative] the predicate) pure