Dotty Documentation

0.15.0-bin-SNAPSHOT

opaque object IArray
extends Object with Serializable

[-] Constructors

[-] Members

[+] object arrayOps

Defines extension methods for immutable arrays

[+] def apply ( xs: [ T ] ) ( implicit evidence$8: ClassTag [ T ] ) : IArray [ T ]

An immutable array with given elements.

[+] def apply ( x: Boolean , xs: [ Boolean ] ) : IArray [ Boolean ]
[+] def apply ( x: Byte , xs: [ Byte ] ) : IArray [ Byte ]
[+] def apply ( x: Short , xs: [ Short ] ) : IArray [ Short ]
[+] def apply ( x: Char , xs: [ Char ] ) : IArray [ Char ]
[+] def apply ( x: Int , xs: [ Int ] ) : IArray [ Int ]
[+] def apply ( x: Long , xs: [ Long ] ) : IArray [ Long ]
[+] def apply ( x: Float , xs: [ Float ] ) : IArray [ Float ]
[+] def apply ( x: Double , xs: [ Double ] ) : IArray [ Double ]
[+] def apply ( x: Unit , xs: [ Unit ] ) : IArray [ Unit ]
[+] def concat ( xss: [ IArray [ T ] ] ) ( implicit evidence$9: ClassTag [ T ] ) : IArray [ T ]

Concatenates all arrays into a single immutable array.

[+] def empty ( implicit evidence$7: ClassTag [ T ] ) : IArray [ T ]

An immutable array of length 0.

[+] def fill ( n: Int ) ( elem: => T ) ( implicit evidence$10: ClassTag [ T ] ) : IArray [ T ]

Returns an immutable array that contains the results of some element computation a number of times. Each element is determined by a separate computation.

[+] def fill ( n1: Int , n2: Int ) ( elem: => T ) ( implicit evidence$11: ClassTag [ T ] ) : IArray [ IArray [ T ] ]

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.

[+] def fill ( n1: Int , n2: Int , n3: Int ) ( elem: => T ) ( implicit evidence$12: ClassTag [ T ] ) : IArray [ IArray [ IArray [ T ] ] ]

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.

[+] def fill ( n1: Int , n2: Int , n3: Int , n4: Int ) ( elem: => T ) ( implicit evidence$13: ClassTag [ T ] ) : IArray [ IArray [ IArray [ IArray [ T ] ] ] ]

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.

[+] def fill ( n1: Int , n2: Int , n3: Int , n4: Int , n5: Int ) ( elem: => T ) ( implicit evidence$14: ClassTag [ T ] ) : IArray [ IArray [ IArray [ IArray [ IArray [ T ] ] ] ] ]

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.

[+] def iterate ( start: T , len: Int ) ( f: T => T ) ( implicit evidence$20: ClassTag [ T ] ) : IArray [ T ]

Returns an immutable array containing repeated applications of a function to a start value.

[+] def range ( start: Int , end: Int ) : IArray [ Int ]

Returns an immutable array containing a sequence of increasing integers in a range.

[+] def range ( start: Int , end: Int , step: Int ) : IArray [ Int ]

Returns an immutable array containing equally spaced values in some integer interval.

[+] def tabulate ( n: Int ) ( f: Int => T ) ( implicit evidence$15: ClassTag [ T ] ) : IArray [ T ]

Returns an immutable array containing values of a given function over a range of integer values starting from 0.

[+] def tabulate ( n1: Int , n2: Int ) ( f: (Int, Int) => T ) ( implicit evidence$16: ClassTag [ T ] ) : IArray [ IArray [ T ] ]

Returns a two-dimensional immutable array containing values of a given function over ranges of integer values starting from 0.

[+] def tabulate ( n1: Int , n2: Int , n3: Int ) ( f: (Int, Int, Int) => T ) ( implicit evidence$17: ClassTag [ T ] ) : IArray [ IArray [ IArray [ T ] ] ]

Returns a three-dimensional immutable array containing values of a given function over ranges of integer values starting from 0.

[+] def tabulate ( n1: Int , n2: Int , n3: Int , n4: Int ) ( f: (Int, Int, Int, Int) => T ) ( implicit evidence$18: ClassTag [ T ] ) : IArray [ IArray [ IArray [ IArray [ T ] ] ] ]

Returns a four-dimensional immutable array containing values of a given function over ranges of integer values starting from 0.

[+] def tabulate ( n1: Int , n2: Int , n3: Int , n4: Int , n5: Int ) ( f: (Int, Int, Int, Int, Int) => T ) ( implicit evidence$19: ClassTag [ T ] ) : IArray [ IArray [ IArray [ IArray [ IArray [ T ] ] ] ] ]

Returns a five-dimensional immutable array containing values of a given function over ranges of integer values starting from 0.

[+] def unapplySeq ( x: IArray [ T ] ) : Option [ IndexedSeq [ T ] ]

Returns a decomposition of the array into a sequence. This supports a pattern match like { case IArray(x,y,z) => println('3 elements')}.