Returns a new array containing all elements in setA which are not present in setB and the elements in setB which are not present in setA. Both setA and setB are required to be sorted. Comparisons will be performed using the supplied predicate or '<' if none is supplied.
Assigns elements to an array.
Performs a linear scan of buf from [0 .. buf.length$(RP), creating a new array with just the elements that satisfy pred. The relative order of elements will be preserved.
Computes the intersection of setA and setB as a set operation and returns the retult in a new sorted array. Both setA and setB are required to be sorted. If either setA or setB contain duplicates, the result will contain the smaller number of duplicates from setA and setB. All entries will be copied from setA. Comparisons will be performed using the supplied predicate or '<' if none is supplied.
Apply a function to each element an array. The function's return values are stored in another array.
Returns a new array containing all elements in setA which are not present in setB. Both setA and setB are required to be sorted. Comparisons will be performed using the supplied predicate or '<' if none is supplied.
Reduce an array of elements to a single element, using a user-supplied reductor function.
Removes all instances of match from source.
Split the provided array wherever a pattern instance is found, and return the resultant segments. The pattern is excluded from each of the segments.
Substitute all instances of match from source. Set replacement to null in order to remove instead of replace (or use the remove() function, below).
Creates a single element dynamic array that slices val. This will not allocate memory in contrast to the 'val' expression.
Computes the union of setA and setB as a set operation and returns the retult in a new sorted array. Both setA and setB are required to be sorted. If either setA or setB contain duplicates, the result will contain the larger number of duplicates from setA and setB. When an overlap occurs, entries will be copied from setA. Comparisons will be performed using the supplied predicate or '<' if none is supplied.
Collection of utilities to create new data based on arrays.
All functions in this module must never mutate their arguments. Some of them allocate new GC memory to store return data, some request explicit buffer argument for result.
Based on tango.core.Array module from Tango library.