this
List.Adds element item
at the end of this
List.
this
.length increases by 1.
Empties this
List.
This function does not traverse the elements, but simply sets the
internal references to null and this
.length to 0.
f
. The returned list will contain all
elements for which f(x) = true
.Returns the first element of this
List, or null if no elements exist.
This function does not modify this
List.
this
List is empty.this
List, with sep
separating
each element.Returns the last element of this
List, or null if no elements exist.
This function does not modify this
List.
f
.Returns the first element of this
List, or null if no elements exist.
The element is removed from this
List.
Adds element item
at the beginning of this
List.
this
.length increases by 1.
Removes the first occurence of v
in this
List.
If v
is found by checking standard equality, it is removed from this
List and the function returns true.
Otherwise, false is returned.
Returns a string representation of this
List.
The result is enclosed in { } with the individual elements being separated by a comma.