This object provides a set of operations to create Iterable values.
| Supertypes | |
|---|---|
| Self type |
This serialization proxy is used for LazyLists which start with a sequence of evaluated cons cells. The forced sequence is serialized in a compact, sequential format, followed by the unevaluated tail, which uses standard Java serialization to store the complete structure of unevaluated thunks. This allows the serialization of long evaluated lazy lists without exhausting the stack through recursive serialization of cons cells.
An alternative way of building and matching lazy lists using LazyList.cons(hd, tl).
Concatenates all argument collections into a single lazy list.
| Value parameters |
|
|---|---|
| Returns | the concatenation of all the collections. |
| Definition Classes | IterableFactory |
Create an infinite LazyList containing the given element expression (which is computed for each occurrence).
| Value parameters |
|
|---|---|
| Returns | the LazyList containing an infinite number of elem |
An empty collection
| Type parameters |
|
|---|
Produces a lazy list containing the results of some element computation a number of times.
| Value parameters |
|
|---|---|
| Returns | A lazy list that contains the results of |
| Definition Classes | IterableFactory |
Creates a target lazy list from an existing source collection
| Type parameters |
|
|---|---|
| Value parameters |
|
| Returns | a new lazy list with the elements of |
Create an infinite LazyList starting at start and incrementing by step step.
| Value parameters |
|
|---|---|
| Returns | the LazyList starting at value |
Create an infinite LazyList starting at start and incrementing by 1.
| Value parameters |
|
|---|---|
| Returns | the LazyList starting at value |
An infinite LazyList that repeatedly applies a given function to a start value.
| Value parameters |
|
|---|---|
| Returns | the LazyList returning the infinite sequence of values |
The builder returned by this method only evaluates elements of collections added to it as needed.
| Type parameters |
|
|---|---|
| Returns | A builder for |
Produces a lazy list containing values of a given function over a range of integer values starting from 0.
| Value parameters |
|
|---|---|
| Returns | A lazy list consisting of elements |
| Definition Classes | IterableFactory |
Produces a lazy list 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 lazy list that produces elements using |
| Definition Classes | IterableFactory |
Creates a collection with the specified elements.
| Type parameters |
|
|---|---|
| Value parameters |
|
| Returns | a new collection with elements |
| Inherited from | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
Produces a collection containing repeated applications of a function to a start value.
| Value parameters |
|
|---|---|
| Returns | a collection with |
| Inherited from | IterableFactory |
Produces a collection containing equally spaced values in some integer interval.
| Value parameters |
|
|---|---|
| Returns | a collection with values |
| Inherited from | IterableFactory |
Produces a collection containing a sequence of increasing of integers.
| Value parameters |
|
|---|---|
| Returns | a collection with values |
| Inherited from | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
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 | IterableFactory |
| Inherited from | SeqFactory |
|---|
| Inherited from | IterableFactory |
|---|
© 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/LazyList$.html