IArray
An immutable array. An IArray[T]
has the same representation as an Array[T]
, but it cannot be updated. Unlike regular arrays, immutable arrays are covariant.
Attributes
- Source
- IArray.scala
- Graph
-
- Supertypes
- Self type
-
IArray.type
Members list
Type members
Classlikes
A lazy filtered array. No filtering is applied until one of foreach
, map
or flatMap
is called.
A lazy filtered array. No filtering is applied until one of foreach
, map
or flatMap
is called.
Attributes
- Source
- IArray.scala
- Supertypes
Value members
Concrete methods
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
An immutable array with given elements.
Concatenates all arrays into a single immutable array.
Concatenates all arrays into a single immutable array.
Value parameters
- xss
-
the given immutable arrays
Attributes
- Returns
-
the array created from concatenating
xss
- Source
- IArray.scala
An immutable array of length 0.
An immutable boolean array of length 0.
An immutable byte array of length 0.
An immutable char array of length 0.
An immutable double array of length 0.
An immutable float array of length 0.
An immutable int array of length 0.
An immutable long array of length 0.
An immutable object array of length 0.
An immutable short array of length 0.
Compare two arrays per element.
Compare two arrays per element.
A more efficient version of xs.sameElements(ys)
.
Value parameters
- xs
-
an array of AnyRef
- ys
-
an array of AnyRef
Attributes
- Returns
-
true if corresponding elements are equal
- Source
- IArray.scala
Returns an immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Returns an immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Value parameters
- elem
-
the element computation
- n
-
the number of elements in the array
Attributes
- Source
- IArray.scala
Returns a two-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Returns a two-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Value parameters
- elem
-
the element computation
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
Attributes
- Source
- IArray.scala
Returns a three-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Returns a three-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Value parameters
- elem
-
the element computation
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3nd dimension
Attributes
- Source
- IArray.scala
Returns a four-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Returns a four-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Value parameters
- elem
-
the element computation
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3nd dimension
- n4
-
the number of elements in the 4th dimension
Attributes
- Source
- IArray.scala
Returns a five-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Returns a five-dimensional immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.
Value parameters
- elem
-
the element computation
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3nd dimension
- n4
-
the number of elements in the 4th dimension
- n5
-
the number of elements in the 5th dimension
Attributes
- Source
- IArray.scala
Build an array from the iterable collection.
Build an array from the iterable collection.
scala> val a = IArray.from(Seq(1, 5))
val a: IArray[Int] = IArray(1, 5)
scala> val b = IArray.from(Range(1, 5))
val b: IArray[Int] = IArray(1, 2, 3, 4)
Value parameters
- it
-
the iterable collection
Attributes
- Returns
-
an array consisting of elements of the iterable collection
- Source
- IArray.scala
Returns an immutable array containing repeated applications of a function to a start value.
Returns an immutable array containing repeated applications of a function to a start value.
Value parameters
- f
-
the function that is repeatedly applied
- len
-
the number of elements returned by the array
- start
-
the start value of the array
Attributes
- Returns
-
the immutable array returning
len
values in the sequencestart, f(start), f(f(start)), ...
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Returns an immutable array containing a sequence of increasing integers in a range.
Returns an immutable array containing a sequence of increasing integers in a range.
Value parameters
- end
-
the end value of the array, exclusive (in other words, this is the first value '''not''' returned)
- start
-
the start value of the array
Attributes
- Returns
-
the immutable array with values in range
start, start + 1, ..., end - 1
up to, but excluding,end
. - Source
- IArray.scala
Returns an immutable array containing equally spaced values in some integer interval.
Returns an immutable array containing equally spaced values in some integer interval.
Value parameters
- end
-
the end value of the array, exclusive (in other words, this is the first value '''not''' returned)
- start
-
the start value of the array
- step
-
the increment value of the array (may not be zero)
Attributes
- Returns
-
the immutable array with values in
start, start + step, ...
up to, but excludingend
- Source
- IArray.scala
Returns an immutable array containing values of a given function over a range of integer values starting from 0.
Returns an immutable array containing values of a given function over a range of integer values starting from 0.
Value parameters
- f
-
The function computing element values
- n
-
The number of elements in the array
Attributes
- Source
- IArray.scala
Returns a two-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Returns a two-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Value parameters
- f
-
The function computing element values
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
Attributes
- Source
- IArray.scala
Returns a three-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Returns a three-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Value parameters
- f
-
The function computing element values
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3rd dimension
Attributes
- Source
- IArray.scala
Returns a four-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Returns a four-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Value parameters
- f
-
The function computing element values
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3rd dimension
- n4
-
the number of elements in the 4th dimension
Attributes
- Source
- IArray.scala
Returns a five-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Returns a five-dimensional immutable array containing values of a given function over ranges of integer values starting from 0
.
Value parameters
- f
-
The function computing element values
- n1
-
the number of elements in the 1st dimension
- n2
-
the number of elements in the 2nd dimension
- n3
-
the number of elements in the 3rd dimension
- n4
-
the number of elements in the 4th dimension
- n5
-
the number of elements in the 5th dimension
Attributes
- Source
- IArray.scala
Returns a decomposition of the array into a sequence. This supports a pattern match like { case IArray(x,y,z) => println('3 elements')}
.
Returns a decomposition of the array into a sequence. This supports a pattern match like { case IArray(x,y,z) => println('3 elements')}
.
Value parameters
- x
-
the selector value
Attributes
- Returns
-
sequence wrapped in a scala.Some, if
x
is a Seq, otherwiseNone
- Source
- IArray.scala
Convert an array into an immutable array without copying, the original array must not be mutated after this or the guaranteed immutablity of IArray will be violated.
Convert an array into an immutable array without copying, the original array must not be mutated after this or the guaranteed immutablity of IArray will be violated.
Attributes
- Source
- IArray.scala
Extensions
Extensions
The selection operation on an immutable array.
The selection operation on an immutable array.
Value parameters
- arr
-
the immutable array
- n
-
the index of the element to select
Attributes
- Returns
-
the element of the array at the given index
- Source
- IArray.scala
The number of elements in an immutable array
The number of elements in an immutable array
Value parameters
- arr
-
the immutable array
Attributes
- Source
- IArray.scala
Counts the number of elements in this array which satisfy a predicate
Counts the number of elements in this array which satisfy a predicate
Attributes
- Source
- IArray.scala
Tests whether a predicate holds for at least one element of this array.
Tests whether a predicate holds for at least one element of this array.
Attributes
- Source
- IArray.scala
Builds a new array by applying a function to all elements of this array and using the elements of the resulting collections.
Builds a new array by applying a function to all elements of this array and using the elements of the resulting collections.
Attributes
- Source
- IArray.scala
Flattens a two-dimensional array by concatenating all its rows into a single array.
Flattens a two-dimensional array by concatenating all its rows into a single array.
Attributes
- Source
- IArray.scala
Finds index of the first element satisfying some predicate after or at some start index.
Finds index of the first element satisfying some predicate after or at some start index.
Attributes
- Source
- IArray.scala
Finds index of last occurrence of some value in this array before or at a given end index.
Finds index of last occurrence of some value in this array before or at a given end index.
Attributes
- Source
- IArray.scala
Finds index of last element satisfying some predicate before or at given end index.
Finds index of last element satisfying some predicate before or at given end index.
Attributes
- Source
- IArray.scala
Sorts this array according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.
Sorts this array according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Attributes
- Source
- IArray.scala
Implicits
Implicits
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq
Conversion from IArray to immutable.ArraySeq