class base string
private String state
overload base string(String s1)
overload base string(String s1, String s2)
overload base string(String s1, String s2, String s3)
overload base string(String s1, String s2, String s3, String s4)
overload base string(String s1, String s2, String s3, String s4, String s5)
overload base string(String s1, String s2, String s3, String s4, String s5, String s6)
overload base string(String s1, String s2, String s3, String s4, String s5, String s6, String s7)
overload base string(String s1, string s2)
overload base string(string s1, String s2)
overload base string(string s1, String s2, String s3)
overload base string(String s1, string s2, String s3)
overload base string(String s1, String s2, string s3)
overload base string(string s1, String s2, string s3)
overload base string(string s1, string s2, String s3)
overload base string(String s1, string s2, String s3, String s4, String s5)
String s()
static String unbox(string the string)
static overload String c(String s1, String s2)
static overload String c(String s1, string s2)
static overload String c(string s1, string s2)
static overload String c(string s1, String s2)
static string from list(readonly list[character] chars)
The number of elements in the collection.
implement integer 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 character first()
Access the last element of the list. Assumes the list is not empty.
implement character last()
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()
Returns an immutable copy of this list.
implement immutable list[character] 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.
implement string skip(nonnegative count)
Returns an immutable sublist with the given the starting and ending indices.
The starting index is inclusive, the ending is exclusive.
implement string slice(nonnegative begin, nonnegative end)
Returns an immutable list with the order of the elements reversed.
implement string reverse()
Check whether the list has at least one element that satisfies the predicate.
implement boolean has(predicate[character] the predicate) pure
override boolean equals(Object other)
implement string to string()