scala.collection.mutable.ArrayOps
A class supporting filtered operations.
[use case] Concatenates this mutable indexed sequence with the elements of a traversable collection.
Concatenates this mutable indexed sequence with the elements of a traversable collection.
[use case] Prepends an element to this mutable indexed sequence
Prepends an element to this mutable indexed sequence
Applies a binary operator to a start value and all elements of this mutable indexed sequence, going left to right.
[use case] Appends an element to this mutable indexed sequence
Appends an element to this mutable indexed sequence
Applies a binary operator to all elements of this mutable indexed sequence and a start value, going right to left.
Appends all elements of this mutable indexed sequence to a string builder.
Appends all elements of this mutable indexed sequence to a string builder using a separator string.
Appends all elements of this mutable indexed sequence to a string builder using start, end, and separator strings.
Selects an element by its index in the mutable indexed sequence.
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.
[use case] Builds a new collection by applying a partial function to all elements of this mutable indexed sequence on which the function is defined.
Builds a new collection by applying a partial function to all elements of this mutable indexed sequence on which the function is defined.
Tests whether this mutable indexed sequence contains a given value as an element.
Tests whether this mutable indexed sequence contains a given sequence as a slice.
[use case] Copies elements of this mutable indexed sequence to an array.
Copies elements of this mutable indexed sequence to an array.
[use case] Copies values of this mutable indexed sequence to an array.
Copies values of this mutable indexed sequence to an array.
[use case] Copies values of this mutable indexed sequence to an array.
Copies values of this mutable indexed sequence to an array.
Copies all elements of this mutable indexed sequence to a buffer.
Tests whether every element of this mutable indexed sequence relates to the corresponding element of another sequence by satisfying a test predicate.
Counts the number of elements in the mutable indexed sequence 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 mutable indexed sequence and another sequence.
Computes the multiset difference between this mutable indexed sequence and another sequence.
Builds a new mutable indexed sequence from this mutable indexed sequence 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.
Tests whether this mutable indexed sequence ends with the given sequence.
The equality method defined in AnyRef
.
Tests whether every element of this mutable indexed sequence 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 mutable indexed sequence.
Selects all elements of this mutable indexed sequence which satisfy a predicate.
Selects all elements of this mutable indexed sequence which do not satisfy a predicate.
Finds the first element of the mutable indexed sequence 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 mutable indexed sequence and concatenating the results.
Builds a new collection by applying a function to all elements of this mutable indexed sequence and concatenating the results.
Flattens a two-dimensional array by concatenating all its rows into a single array.
Applies a binary operator to a start value and all elements of this mutable indexed sequence, going left to right.
Applies a binary operator to all elements of this mutable indexed sequence and a start value, going right to left.
Tests whether a predicate holds for all elements of this mutable indexed sequence.
[use case] Applies a function f
to all elements of this mutable indexed sequence.
Applies a function f
to all elements of this mutable indexed sequence.
Partitions this mutable indexed sequence into a map of mutable indexed sequences according to some discriminator function.
Partitions elements in fixed size mutable indexed sequences.
Tests whether this mutable indexed sequence is known to have a finite size.
Hashcodes for ArrayOps produce a value from the hashcodes of all the elements of the mutable indexed sequence.
Selects the first element of this mutable indexed sequence.
Optionally selects the first element.
[use case] Finds index of first occurrence of some value in this mutable indexed sequence after or at some start index.
Finds index of first occurrence of some value in this mutable indexed sequence after or at some start index.
[use case] Finds index of first occurrence of some value in this mutable indexed sequence.
Finds index of first occurrence of some value in this mutable indexed sequence.
Finds first index after or at a start index where this mutable indexed sequence contains a given sequence as a slice.
Finds first index where this mutable indexed sequence 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 mutable indexed sequence and another sequence.
Computes the multiset intersection between this mutable indexed sequence and another sequence.
Tests whether this mutable indexed sequence contains given index.
Tests whether this mutable indexed sequence is empty.
Tests whether this mutable indexed sequence 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 mutable indexed sequence before or at a given end index.
Finds index of last occurrence of some value in this mutable indexed sequence before or at a given end index.
[use case] Finds index of last occurrence of some value in this mutable indexed sequence.
Finds index of last occurrence of some value in this mutable indexed sequence.
Finds last index before or at a given end index where this mutable indexed sequence contains a given sequence as a slice.
Finds last index where this mutable indexed sequence 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 mutable indexed sequence.
Compares the length of this mutable indexed sequence to a test value.
[use case] Builds a new collection by applying a function to all elements of this mutable indexed sequence.
Builds a new collection by applying a function to all elements of this mutable indexed sequence.
[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 mutable indexed sequence in a string.
Displays all elements of this mutable indexed sequence in a string using a separator string.
Displays all elements of this mutable indexed sequence in a string using start, end, and separator strings.
Tests whether the mutable indexed sequence is not empty.
[use case] Appends an element value to this mutable indexed sequence until a given target length is reached.
Appends an element value to this mutable indexed sequence until a given target length is reached.
Partitions this mutable indexed sequence in two mutable indexed sequences according to a predicate.
[use case] Produces a new mutable indexed sequence where a slice of elements in this mutable indexed sequence is replaced by another sequence.
Produces a new mutable indexed sequence where a slice of elements in this mutable indexed sequence 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 mutable indexed sequence, going left to right.
Optionally applies a binary operator to all elements of this mutable indexed sequence, going left to right.
Applies a binary operator to all elements of this mutable indexed sequence, going right to left.
Optionally applies a binary operator to all elements of this mutable indexed sequence, going right to left.
The collection of type mutable indexed sequence underlying this TraversableLike
object.
Returns new mutable indexed sequence 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 mutable indexed sequence and collecting the results in reversed order.
Builds a new collection by applying a function to all elements of this mutable indexed sequence 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 mutable indexed sequence.
Checks if the other iterable collection contains the same elements in the same order as this mutable indexed sequence.
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 mutable indexed sequence, 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 ArrayOps according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.
Sorts this mutable indexed sequence according to a comparison function.
Sorts this mutable indexed sequence according to an Ordering.
Splits this mutable indexed sequence into a prefix/suffix pair according to a predicate.
Splits this mutable indexed sequence into two at a given position.
Tests whether this mutable indexed sequence contains the given sequence at a given index.
Tests whether this mutable indexed sequence 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 mutable indexed sequence to an array.
Converts this mutable indexed sequence to an array.
Converts this mutable indexed sequence to a mutable buffer.
Converts this mutable indexed sequence to an indexed sequence.
Converts this mutable indexed sequence to an iterable collection.
Returns an Iterator over the elements in this mutable indexed sequence.
Converts this mutable indexed sequence to a list.
Converts this mutable indexed sequence to a map.
Converts this mutable indexed sequence to a sequence.
Converts this mutable indexed sequence to a set.
Converts this mutable indexed sequence to a stream.
Converts this mutable indexed sequence to a string.
Converts this mutable indexed sequence to an unspecified Traversable.
Transposes a two dimensional array.
[use case] Produces a new sequence which contains all elements of this mutable indexed sequence and also all elements of a given sequence.
Produces a new sequence which contains all elements of this mutable indexed sequence and also all elements of a given sequence.
Replaces element at given index with a new value.
[use case] A copy of this mutable indexed sequence with one single replaced element.
A copy of this mutable indexed sequence 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 mutable indexed sequence.
[use case] Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.
Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.
Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this mutable indexed sequence with its indices.
Zips this mutable indexed sequence with its indices.
A class of
ArrayOps
for arrays containing reference types.