Namespace spl.collection
This namespace contains components for handling collections.
By default this namespace is in scope for SPL programs, so no explicit use statement is required to use them.
Functions
- appendM(blob, list<uint8>): Append a list of bytes to a blob.
- appendM(blob, uint8): Append a byte to a blob.
- appendM(list<T>, T): Append to a list (mutating version).
- appendM(list<T>[N], T): Append to a bounded list (mutating version).
- at(list<T>, list<uint32>): Access multiple elements of a list.
- at(list<T>[N], list<uint32>): Access multiple elements of a list.
- blobSize(blob): Get the size of a blob.
- clearM(T): Clear (empty) a list.
- clearM(blob): Clear (empty) a list.
- concat(list<T>, list<T>): Concatenate two lists.
- concat(list<T>, list<T>[N]): Concatenate two lists.
- concat(list<T>[N], list<T>): Concatenate two lists.
- concat(list<T>[N], list<T>[M]): Concatenate two lists.
- concatM(list<T>, list<T>): Concatenate two lists (mutating version).
- concatM(list<T>, list<T>[N]): Concatenate two lists (mutating version).
- concatM(list<T>[N], list<T>): Concatenate two lists (mutating version).
- concatM(list<T>[N], list<T>[M]): Concatenate two lists (mutating version).
- concatM(set<T>, set<T>): Concatenate two sets (mutating version).
- concatM(set<T>, set<T>[N]): Concatenate two sets (mutating version).
- concatM(set<T>[N], set<T>): Concatenate two sets (mutating version).
- concatM(set<T>[N], set<T>[M]): Concatenate two sets (mutating version).
- countDistinct(list<T>): Compute the distinct count of a list.
- countDistinct(list<T>[N]): Compute the distinct count of a list.
- find(list<T>, T): Find the matching values in a list, given a value to search for.
- find(list<T>[N], T): Find the matching values in a list, given a value to search for.
- findFirst(list<T>, T): Find the first occurrence of a matching value in a list, given a value to search for, starting at index 0.
- findFirst(list<T>, T, int32): Find the first occurrence of a matching value in a list, given a value to search for.
- findFirst(list<T>, list<T>): Find the first occurrence of a matching sequence of values in a list, starting at index 0.
- findFirst(list<T>, list<T>, int32): Find the first occurrence of a matching sequence of values in a list.
- findFirst(list<T>[N], T): Find the first occurrence of a matching value in a list, given a value to search for, starting at index 0.
- findFirst(list<T>[N], T, int32): Find the first occurrence of a matching value in a list, given a value to search for.
- findFirst(list<T>[N], list<T>[M]): Find the first occurrence of a matching sequence of values in a list, starting at index 0.
- findFirst(list<T>[N], list<T>[M], int32): Find the first occurrence of a matching sequence of values in a list.
- findFirstNotOf(list<T>, list<T>): Find the first occurrence of a non-matching value in a list, given a list of values to search for, starting at index 0.
- findFirstNotOf(list<T>, list<T>, int32): Find the first occurrence of a non-matching value in a list, given a list of values to search for.
- findFirstNotOf(list<T>, list<T>[N]): Find the first occurrence of a non-matching value in a list, given a list of values to search for, starting at index 0.
- findFirstNotOf(list<T>, list<T>[N], int32): Find the first occurrence of a non-matching value in a list, given a list of values to search for.
- findFirstNotOf(list<T>[N], list<T>): Find the first occurrence of a non-matching value in a list, given a list of values to search for, starting at index 0.
- findFirstNotOf(list<T>[N], list<T>, int32): Find the first occurrence of a non-matching value in a list, given a list of values to search for.
- findFirstNotOf(list<T>[N], list<T>[M]): Find the first occurrence of a non-matching value in a list, given a list of values to search for, starting at index 0.
- findFirstNotOf(list<T>[N], list<T>[M], int32): Find the first occurrence of a non-matching value in a list, given a list of values to search for.
- findFirstOf(list<T>, list<T>): Find the first occurrence of a matching value in a list, given a list of values to search for, starting at index 0.
- findFirstOf(list<T>, list<T>, int32): Find the first occurrence of a matching value in a list, given a list of values to search for.
- findFirstOf(list<T>, list<T>[N]): Find the first occurrence of a matching value in a list, given a list of values to search for, starting at index 0.
- findFirstOf(list<T>, list<T>[N], int32): Find the first occurrence of a matching value in a list, given a list of values to search for.
- findFirstOf(list<T>[N], list<T>): Find the first occurrence of a matching value in a list, given a list of values to search for, starting at index 0.
- findFirstOf(list<T>[N], list<T>, int32): Find the first occurrence of a matching value in a list, given a list of values to search for.
- findFirstOf(list<T>[N], list<T>[M]): Find the first occurrence of a matching value in a list, given a list of values to search for, starting at index 0.
- findFirstOf(list<T>[N], list<T>[M], int32): Find the first occurrence of a matching value in a list, given a list of values to search for.
- findLast(list<T>, T, int32): Find the last occurrence of a matching value in a list, given a value to search for.
- findLast(list<T>, list<T>, int32): Find the last occurrence of a matching sequence of values in a list.
- findLast(list<T>[N], T, int32): Find the last occurrence of a matching value in a list, given a value to search for.
- findLast(list<T>[N], list<T>[M], int32): Find the last occurrence of a matching sequence of values in a list.
- findLastNotOf(list<T>, list<T>, int32): Find the last occurrence of a non-matching value in a list, given a list of values to search for.
- findLastNotOf(list<T>, list<T>[N], int32): Find the last occurrence of a non-matching value in a list, given a list of values to search for.
- findLastNotOf(list<T>[N], list<T>, int32): Find the last occurrence of a non-matching value in a list, given a list of values to search for.
- findLastNotOf(list<T>[N], list<T>[M], int32): Find the last occurrence of a non-matching value in a list, given a list of values to search for.
- findLastOf(list<T>, list<T>, int32): Find the last occurrence of a matching value in a list, given a list of values to search for.
- findLastOf(list<T>, list<T>[N], int32): Find the last occurrence of a matching value in a list, given a list of values to search for.
- findLastOf(list<T>[N], list<T>, int32): Find the last occurrence of a matching value in a list, given a list of values to search for.
- findLastOf(list<T>[N], list<T>[M], int32): Find the last occurrence of a matching value in a list, given a list of values to search for.
- findNotOf(list<T>, list<T>): Find the non-matching values in a list, given a list of values to search for.
- findNotOf(list<T>, list<T>[N]): Find the non-matching values in a list, given a list of values to search for.
- findNotOf(list<T>[N], list<T>): Find the non-matching values in a list, given a list of values to search for.
- findNotOf(list<T>[N], list<T>[M]): Find the non-matching values in a list, given a list of values to search for.
- findOf(list<T>, list<T>): Find the matching values in a list, given a list of values to search for.
- findOf(list<T>, list<T>[N]): Find the matching values in a list, given a list of values to search for.
- findOf(list<T>[N], list<T>): Find the matching values in a list, given a list of values to search for.
- findOf(list<T>[N], list<T>[M]): Find the matching values in a list, given a list of values to search for.
- has(list<T>, T): Find whether a given value exists in a list.
- has(list<T>[N], T): Find whether a given value exists in a list.
- has(map<K, V>, K): Find whether a given key exists in a map.
- has(map<K, V>[N], K): Find whether a given key exists in a map.
- has(set<T>, T): Find whether a given value exists in a set.
- has(set<T>[N], T): Find whether a given value exists in a set.
- insert(list<T>, T, int32): Insert a value into a list.
- insert(list<T>, list<T>, int32): Insert a list of values into a list.
- insert(list<T>, list<T>[N], int32): Insert a list of values into a list.
- insert(list<T>[N], T, int32): Insert a value into a list.
- insert(list<T>[N], list<T>, int32): Insert a list of values into a list.
- insert(list<T>[N], list<T>[M], int32): Insert a list of values into a list.
- insert(map<K, V>, K, V): Insert an element into a map.
- insert(map<K, V>[N], K, V): Insert an element into a map.
- insert(set<V>, V): Insert a value into a set.
- insert(set<V>[N], V): Insert a value into a set.
- insertM(list<T>, T, int32): Insert a value into a list (mutating version).
- insertM(list<T>, list<T>, int32): Insert values into a list (mutating version).
- insertM(list<T>, list<T>[N], int32): Insert values into a list (mutating version).
- insertM(list<T>[N], T, int32): Insert a value into a list (mutating version).
- insertM(list<T>[N], list<T>, int32): Insert values into a list (mutating version).
- insertM(list<T>[N], list<T>[M], int32): Insert values into a list (mutating version).
- insertM(map<K, V>, K, V): Insert an element into a map (mutating version).
- insertM(map<K, V>[N], K, V): Insert an element into a map (mutating version).
- insertM(set<V>, V): Insert a value into a set (mutating version).
- insertM(set<V>[N], V): Insert a value into a set (mutating version).
- keys(map<K, V>): Return a list of the keys in the given map.
- keys(map<K, V>[N]): Return a list of the keys in the given map.
- lexicographicalCompare(list<T>, list<T>): Compare two lists in lexicographical order.
- lexicographicalCompare(list<T>[N], list<T>[M]): Compare two lists in lexicographical order.
- makeSequence(T, int32): Make a sequence.
- makeSequence(T, int32): Make a sequence.
- makeSequence(T, int32, T): Make a sequence.
- pairwiseCompare(T, list<T>): Compare a list, element-wise, with a scalar value.
- pairwiseCompare(T, list<T>[N]): Compare a list, element-wise, with a scalar value.
- pairwiseCompare(list<T>, T): Compare a list, element-wise, with a scalar value.
- pairwiseCompare(list<T>, list<T>): Compare two lists, element-wise, up to the end of the shorter list, or of both lists if they are of equal length.
- pairwiseCompare(list<T>[N], T): Compare a list, element-wise, with a scalar value.
- pairwiseCompare(list<T>[N], list<T>[N]): Compare two lists, element-wise, up to the end of the shorter list, or of both lists if they are of equal length.
- pairwiseMax(list<T>, list<T>): Compare two lists, element-wise, and fetch the larger or equal value, up to the end of the shorter list, or of both lists if they are of equal length.
- pairwiseMax(list<T>[N], list<T>[N]): Compare two lists, element-wise, and fetch the larger or equal value, up to the end of the shorter list, or of both lists if they are of equal length.
- pairwiseMin(list<T>, list<T>): Compare two lists, element-wise, and fetch the smaller or equal value, up to the end of the shorter list, or of both lists if they are of equal length.
- pairwiseMin(list<T>[N], list<T>[N]): Compare two lists, element-wise, and fetch the smaller or equal value, up to the end of the shorter list, or of both lists if they are of equal length.
- range(T): Return a list of values in the range from 0 to size(l)-1
- range(int32): Return a list of values in the range from 0 to limit-1
- range(int32, int32): Return a list of values in the range from start to limit-1
- range(int32, int32, int32): Return a list of values in the range from start to limit-1, with an increment of step
- remove(T, int32): Remove a value from a list.
- remove(T, int32, int32): Remove values from a list using a range.
- remove(T, list<int32>): Remove values from a list using an index list.
- remove(map<K, V>, K): Remove an element from a map.
- remove(map<K, V>[N], K): Remove an element from a map.
- remove(set<K>, K): Return a set with a value removed.
- remove(set<K>[N], K): Return a set with a value removed.
- removeM(T, int32): Remove a value from a list (mutating version).
- removeM(T, int32, int32): Remove values from a list using a range (mutating version).
- removeM(map<K, V>, K): Remove an element from a map (mutating version).
- removeM(map<K, V>[N], K): Remove an element from a map (mutating version).
- removeM(set<K>, K): Remove a value from a set (mutating version).
- removeM(set<K>[N], K): Remove a value from a set (mutating version).
- reverse(T): Reverse a list of values.
- reverseM(T): Reverse a list of values (mutating version).
- selectFromList(list<boolean>, T, T): Select element-wise from two lists.
- setDifference(T, T): Compute the difference of two sets.
- setIntersection(T, T): Compute the intersection of two sets.
- setUnion(T, T): Compute the union of two sets.
- size(T): Get the size of a list.
- size(blob): Get the size of a list.
- slice(T, int32, int32): Slice a list: extract items from a list.
- slice(T, int32, int32, int32): Slice a list: extract items from a list.
- slice(T, int32, int32, int32, int32): Slice a list: extract items from a list.
- sort(list<T>): Sort a list of values.
- sort(list<T>[N]): Sort a list of values.
- sortIndices(list<T>): Sort a list of values and return a list of indexes that specify the values in sorted order.
- sortIndices(list<T>[N]): Sort a list of values and return a list of indexes that specify the values in sorted order.
- sortM(list<T>): Sort a list of values (mutating version).
- sortM(list<T>[N]): Sort a list of values (mutating version).
- toSet(list<T>): Convert a list to a set.
- toSet(list<T>[N]): Convert a list to a set.