class base string
implement string skip(nonnegative count)
implement string slice(nonnegative begin, nonnegative end)
extends debuggable
implements string
implements string text node
private String state
Specifies whether the collection has zero elements.
implement boolean is empty => state • length() == 0
Specifies whether the collection has more than zero elements.
Shortcut for !is_empty.
implement boolean is not empty => state • length() != 0
Access the first element of the list.
Assumes the list is not empty.
implement character first()
assert is not empty
return state • charAt(0)
Access the last element of the list.
Assumes the list is not empty.
implement character last()
assert is not empty
Read the list's element for the specified index.
implement implicit readonly reference[character] 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 immutable list[character] elements()
return this
Returns an immutable copy of this list.
implement immutable list[character] frozen copy()
return this
Skips over the specified count of elements and returns an immutable slice
that begins with count and ends with the end of this list.
Returns an immutable sublist with the given the starting and ending indices.
The starting index is inclusive, the ending is exclusive.
Check whether the list has at least one element that satisfies the predicate.
implement boolean has(predicate[character] the predicate) pure