Append a list to this list.
Append a list to this list. O(n) on the size of this list
Prepend the given value to this List O(1)
Prepend the given value to this List O(1)
Append a list to this list.
Append a list to this list. O(n) on the size of this list
Apply a function extracting a B from every sublist, accumuating all the Bs into a List O(n)
Apply a function extracting a B from every sublist, accumuating all the Bs into a List O(n)
Returns true if the given value is present in the List.
Returns true if the given value is present in the List. O(n)
Returns a List containing the first n elements of this List, if n * < the length of this list, the result will be a copy of this list.
Returns a List containing the first n elements of this List, if n * < the length of this list, the result will be a copy of this list. O(num)
Returns the list with the longest prefix of As matching the given predicate removed.
Returns the list with the longest prefix of As matching the given predicate removed.
Returns true of any element in the List matches the given predicate.
Returns true of any element in the List matches the given predicate. O(n)
Construct a new List containing only elements of this List which pass the given predicate O(n)
Construct a new List containing only elements of this List which pass the given predicate O(n)
Return the first element in the List matching the given predicate, if one is found at all.
Return the first element in the List matching the given predicate, if one is found at all. O(n)
Apply a function returning a List to each element of this List, return a List which is the concatenation of all the resulting Lists.
Apply a function returning a List to each element of this List, return a List which is the concatenation of all the resulting Lists. O(n)
A left-associated fold of the List, which accumuates a B value by passing each element of the List to the given accumulating function.
A left-associated fold of the List, which accumuates a B value by passing each element of the List to the given accumulating function. O(n)
A right-associative fold on the list which evaluates the tail of the list lazily, allowing this computation to terminate before evailuating all of the elements on the list O(n)
A right-associative fold on the list which evaluates the tail of the list lazily, allowing this computation to terminate before evailuating all of the elements on the list O(n)
Returns true of all elements in the List match the given predicate.
Returns true of all elements in the List match the given predicate. O(n)
Execute the side-effecting function on each memeber of the list, in order
Execute the side-effecting function on each memeber of the list, in order
Return the head of the list, if one exists
Return the head of the list, if one exists
Apply a function to each element of this list, producing a new list with the results.
Apply a function to each element of this list, producing a new list with the results. O(n)
Return a List which contains all of the same elements as this List, but in the opposite order O(n)
Return a List which contains all of the same elements as this List, but in the opposite order O(n)
Return the tail of the list, if one exists
Return the tail of the list, if one exists
Returns a stream of Lists.
Returns a stream of Lists. the first list is this, and the rest of the stream are the lists generated by subsequently calilng tailOption as long as the list is non-empty.
Returns a List containing the first n elements of this List, if n < the length of this list, the result will be a copy of this list.
Returns a List containing the first n elements of this List, if n < the length of this list, the result will be a copy of this list. O(num)
Returns the longest prefix of elements which match the given predicate.
Returns the longest prefix of elements which match the given predicate.
If there is proof that this is a list of (B,C) return a tuple of the lists with the elements separated
If there is proof that this is a list of (B,C) return a tuple of the lists with the elements separated
Returns a list of (A,B) pairs.
Returns a list of (A,B) pairs. If one list is longer than the other, the reminaing elements are ignored
Returns a list of (A,Int) where each A is paired with its zero-based index in the list
Returns a list of (A,Int) where each A is paired with its zero-based index in the list