scala.collection.mutable.WrappedArray
A class supporting filtered operations .
[use case] Concatenates this wrapped array with the elements of a traversable collection .
Concatenates this wrapped array with the elements of a traversable collection .
[use case] Prepends an element to this wrapped array
Prepends an element to this wrapped array
Applies a binary operator to a start value and all elements of this wrapped array, going left to right .
[use case] Appends an element to this wrapped array
Appends an element to this wrapped array
Applies a binary operator to all elements of this wrapped array and a start value, going right to left .
Appends all elements of this wrapped array to a string builder .
Appends all elements of this wrapped array to a string builder using a separator string .
Appends all elements of this wrapped array to a string builder using start, end, and separator strings .
Composes this partial function with a transformation function that gets applied to results of this partial function .
The element at given index@return the element of this wrapped array at index idx
, where 0
indicates the first element.
The underlying array
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind .
Clones this object, including the underlying Array .
[use case] Builds a new collection by applying a partial function to all elements of this wrapped array on which the function is defined .
Builds a new collection by applying a partial function to all elements of this wrapped array on which the function is defined .
The factory companion object that builds instances of class WrappedArray .
(f compose g)(x) == f(g(x))
Tests whether this wrapped array contains a given value as an element .
Tests whether this wrapped array contains a given sequence as a slice .
[use case] Copies elements of this wrapped array to an array .
Copies elements of this wrapped array to an array .
[use case] Copies values of this wrapped array to an array .
Copies values of this wrapped array to an array .
[use case] Copies values of this wrapped array to an array .
Copies values of this wrapped array to an array .
Copies all elements of this wrapped array to a buffer .
Tests whether every element of this wrapped array relates to the corresponding element of another sequence by satisfying a test predicate .
Counts the number of elements in the wrapped array which satisfy a predicate .
Creates a possible nested IndexedSeq
which consists of all the elements
of this array.
[use case] Computes the multiset difference between this wrapped array and another sequence .
Computes the multiset difference between this wrapped array and another sequence .
Builds a new wrapped array from this wrapped array without any duplicate elements .
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate .
The manifest of the element type
Tests whether this wrapped array ends with the given sequence .
The equality method defined in AnyRef
.
Tests whether every element of this wrapped array relates to the corresponding element of another sequence by satisfying a test predicate .
Tests whether a predicate holds for some of the elements of this wrapped array .
Selects all elements of this wrapped array which satisfy a predicate .
Selects all elements of this wrapped array which do not satisfy a predicate .
Finds the first element of the wrapped array satisfying a predicate, if any .
Returns index of the first element satisfying a predicate, or -1
.
Returns index of the last element satisfying a predicate, or -1 .
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this wrapped array and concatenating the results .
Builds a new collection by applying a function to all elements of this wrapped array and concatenating the results .
[use case] Converts this wrapped array of traversable collections into a wrapped array in which all element collections are concatenated .
Converts this wrapped array of traversable collections into a wrapped array in which all element collections are concatenated .
Applies a binary operator to a start value and all elements of this wrapped array, going left to right .
Applies a binary operator to all elements of this wrapped array and a start value, going right to left .
Tests whether a predicate holds for all elements of this wrapped array .
[use case] Applies a function f
to all elements of this wrapped array.
Applies a function f
to all elements of this wrapped array.
The generic builder that builds instances of WrappedArray at arbitrary element types .
Partitions this wrapped array into a map of wrapped arrays according to some discriminator function .
Partitions elements in fixed size wrapped arrays .
Tests whether this wrapped array is known to have a finite size .
Hashcodes for WrappedArray produce a value from the hashcodes of all the elements of the wrapped array .
Selects the first element of this wrapped array .
Optionally selects the first element .
[use case] Finds index of first occurrence of some value in this wrapped array after or at some start index .
Finds index of first occurrence of some value in this wrapped array after or at some start index .
[use case] Finds index of first occurrence of some value in this wrapped array .
Finds index of first occurrence of some value in this wrapped array .
Finds first index after or at a start index where this wrapped array contains a given sequence as a slice .
Finds first index where this wrapped array contains a given sequence as a slice .
Finds index of the first element satisfying some predicate after or at some start index .
Finds index of first element satisfying some predicate .
Produces the range of all indices of this sequence .
Selects all elements except the last .
[use case] Computes the multiset intersection between this wrapped array and another sequence .
Computes the multiset intersection between this wrapped array and another sequence .
Tests whether this wrapped array contains given index .
Tests whether this wrapped array is empty .
Tests whether this wrapped array can be repeatedly traversed .
Creates a new iterator over all elements contained in this iterable object .
Selects the last element .
[use case] Finds index of last occurrence of some value in this wrapped array before or at a given end index .
Finds index of last occurrence of some value in this wrapped array before or at a given end index .
[use case] Finds index of last occurrence of some value in this wrapped array .
Finds index of last occurrence of some value in this wrapped array .
Finds last index before or at a given end index where this wrapped array contains a given sequence as a slice .
Finds last index where this wrapped array contains a given sequence as a slice .
Finds index of last element satisfying some predicate before or at given end index .
Finds index of last element satisfying some predicate .
Optionally selects the last element .
The length of the array@return the number of elements in this wrapped array .
Compares the length of this wrapped array to a test value .
Turns this partial function into an plain function returning an Option
result.
[use case] Builds a new collection by applying a function to all elements of this wrapped array .
Builds a new collection by applying a function to all elements of this wrapped array .
[use case] Finds the largest element .
Finds the largest element .
[use case] Finds the smallest element .
Finds the smallest element .
Displays all elements of this wrapped array in a string .
Displays all elements of this wrapped array in a string using a separator string .
Displays all elements of this wrapped array in a string using start, end, and separator strings .
Tests whether the wrapped array is not empty .
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined .
[use case] Appends an element value to this wrapped array until a given target length is reached .
Appends an element value to this wrapped array until a given target length is reached .
Partitions this wrapped array in two wrapped arrays according to a predicate .
[use case] Produces a new wrapped array where a slice of elements in this wrapped array is replaced by another sequence .
Produces a new wrapped array where a slice of elements in this wrapped array is replaced by another sequence .
Returns the length of the longest prefix whose elements all satisfy some predicate .
[use case] Multiplies up the elements of this collection .
Multiplies up the elements of this collection .
returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection .
Applies a binary operator to all elements of this wrapped array, going left to right .
Optionally applies a binary operator to all elements of this wrapped array, going left to right .
Applies a binary operator to all elements of this wrapped array, going right to left .
Optionally applies a binary operator to all elements of this wrapped array, going right to left .
The collection of type wrapped array underlying this TraversableLike
object.
Returns new wrapped array wih elements in reversed order .
An iterator yielding elements in reversed order .
[use case] Builds a new collection by applying a function to all elements of this wrapped array and collecting the results in reversed order .
Builds a new collection by applying a function to all elements of this wrapped array and collecting the results in reversed order .
[use case] Checks if the other iterable collection contains the same elements in the same order as this wrapped array .
Checks if the other iterable collection contains the same elements in the same order as this wrapped array .
Produces a collection containing cummulative results of applying the operator going left to right .
Produces a collection containing cummulative results of applying the operator going right to left .
Computes length of longest segment whose elements all satisfy some predicate .
The size of this wrapped array, equivalent to length
.
Selects an interval of elements .
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped .
Sorts this WrappedArray according to the Ordering which results from transforming an implicitly given Ordering with a transformation function .
Sorts this wrapped array according to a comparison function .
Sorts this wrapped array according to an Ordering .
Splits this wrapped array into a prefix/suffix pair according to a predicate .
Splits this wrapped array into two at a given position .
Tests whether this wrapped array contains the given sequence at a given index .
Tests whether this wrapped array starts with the given sequence .
Defines the prefix of this object's toString
representation.
[use case] Sums up the elements of this collection .
Sums up the elements of this collection .
Selects all elements except the first .
Selects first n elements.
Selects last n elements.
Takes longest prefix of elements that satisfy a predicate .
[use case] Converts this wrapped array to an array .
Converts this wrapped array to an array .
Converts this wrapped array to an indexed sequence .
Converts this wrapped array to an iterable collection .
Returns an Iterator over the elements in this wrapped array .
Converts this wrapped array to a list .
Converts this wrapped array to a map .
Converts this wrapped array to a sequence .
Converts this wrapped array to a set .
Converts this wrapped array to a stream .
Converts this wrapped array to a string .
Converts this wrapped array to an unspecified Traversable .
Transposes this wrapped array of traversable collections into a wrapped array of wrapped arrays .
[use case] Produces a new sequence which contains all elements of this wrapped array and also all elements of a given sequence .
Produces a new sequence which contains all elements of this wrapped array and also all elements of a given sequence .
Converts this wrapped array of pairs into two collections of the first and second halfs of each pair .
Update element at given index@param elem the new value .
[use case] A copy of this wrapped array with one single replaced element .
A copy of this wrapped array with one single replaced element .
A sub-sequence view starting at index from
and extending up to (but not including) index until
.
Creates a view of this iterable @see Iterable .
Creates a non-strict filter of this wrapped array .
[use case] Returns a wrapped array formed from this wrapped array and another iterable collection by combining corresponding elements in pairs .
Returns a wrapped array formed from this wrapped array and another iterable collection by combining corresponding elements in pairs .
[use case] Returns a wrapped array formed from this wrapped array and another iterable collection by combining corresponding elements in pairs .
Returns a wrapped array formed from this wrapped array and another iterable collection by combining corresponding elements in pairs .
[use case] Zips this wrapped array with its indices .
Zips this wrapped array with its indices .