This object provides a set of operations to create Iterable values.
| Supertypes | |
|---|---|
| Self type |
Produces a immutable array containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A immutable array that contains the results of |
| Definition Classes | StrictOptimizedClassTagSeqFactory -> EvidenceIterableFactory |
Produces a immutable array containing values of a given function over a range of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A immutable array consisting of elements |
| Definition Classes | StrictOptimizedClassTagSeqFactory -> EvidenceIterableFactory |
Wrap an existing Array into an ArraySeq of the proper primitive specialization type without copying. Any changes to wrapped array will break the expected immutability.
Note that an array containing boxed primitives can be wrapped in an ArraySeq without copying. For example, val a: Array[Any] = Array(1) is an array of Object at runtime, containing Integers. An ArraySeq[Int] can be obtained with a cast: ArraySeq.unsafeWrapArray(a).asInstanceOf[ArraySeq[Int]]. The values are still boxed, the resulting instance is an ArraySeq.ofRef. Writing ArraySeq.unsafeWrapArray(a.asInstanceOf[Array[Int]]) does not work, it throws a ClassCastException at runtime.
| Inherited from | EvidenceIterableFactory |
|---|
Produces a five-dimensional collection containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A collection that contains the results of |
| Inherited from | ClassTagIterableFactory |
Produces a four-dimensional collection containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A collection that contains the results of |
| Inherited from | ClassTagIterableFactory |
Produces a three-dimensional collection containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A collection that contains the results of |
| Inherited from | ClassTagIterableFactory |
Produces a two-dimensional collection containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A collection that contains the results of |
| Inherited from | ClassTagIterableFactory |
Produces a collection containing repeated applications of a function to a start value.
| Value parameters |
|
|---|---|
| Returns | a collection with |
| Inherited from | EvidenceIterableFactory |
Produces a collection containing equally spaced values in some integer interval.
| Value parameters |
|
|---|---|
| Returns | a collection with values |
| Inherited from | ClassTagIterableFactory |
Produces a collection containing a sequence of increasing of integers.
| Value parameters |
|
|---|---|
| Returns | a collection with values |
| Inherited from | ClassTagIterableFactory |
Produces a five-dimensional collection containing values of a given function over ranges of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A collection consisting of elements |
| Inherited from | ClassTagIterableFactory |
Produces a four-dimensional collection containing values of a given function over ranges of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A collection consisting of elements |
| Inherited from | ClassTagIterableFactory |
Produces a three-dimensional collection containing values of a given function over ranges of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A collection consisting of elements |
| Inherited from | ClassTagIterableFactory |
Produces a two-dimensional collection containing values of a given function over ranges of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A collection consisting of elements |
| Inherited from | ClassTagIterableFactory |
| Inherited from | ClassTagSeqFactory |
|---|
Produces a collection that uses a function f to produce elements of type A and update an internal state of type S.
| Type parameters |
|
|---|---|
| Value parameters |
|
| Returns | a collection that produces elements using |
| Inherited from | EvidenceIterableFactory |
| Inherited from | EvidenceIterableFactory |
|---|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/immutable/ArraySeq$.html