The underlying collection type with unknown element type
The underlying collection type with unknown element type
A lazy cons cell, from which streams are built.
A lazy cons cell, from which streams are built.
A wrapper class that adds #::
for cons and #:::
for concat as operations
to streams.
A generic implementation of the CanBuildFrom
trait, which forwards
all calls to apply(from)
to the genericBuilder
method of
collection from
, and which forwards all calls of apply()
to the
newBuilder
method of this factory.
A generic implementation of the CanBuildFrom
trait, which forwards
all calls to apply(from)
to the genericBuilder
method of
collection from
, and which forwards all calls of apply()
to the
newBuilder
method of this factory.
A builder for streams
A builder for streams
This builder is lazy only in the sense that it does not go downs the spine of traversables that are added as a whole. If more laziness can be achieved, this builder should be bypassed.
The factory for streams.
The factory for streams.
Methods such as map/flatMap will not invoke the Builder
factory,
but will return a new stream directly, to preserve laziness.
The new stream is then cast to the factory's result type.
This means that every CanBuildFrom that takes a
Stream as its From type parameter must yield a stream as its result parameter.
If that assumption is broken, cast errors might result.
An extractor that allows to pattern match streams with #::
.
A stream consisting of given elements
A stream consisting of given elements
the type of the collection's elements
a new collection with elements elems
Concatenates all argument collections into a single collection.
Concatenates all argument collections into a single collection.
the collections that are to be concatenated.
the concatenation of all the collections.
An alternative way of building and matching Streams using Stream.
An alternative way of building and matching Streams using Stream.cons(hd, tl).
A wrapper method that adds #::
for cons and #::: for concat as operations
to streams.
Create an infinite stream containing the given element expression (which is computed for each occurrence).
Create an infinite stream containing the given element expression (which is computed for each occurrence).
the element composing the resulting stream
the stream containing an infinite number of elem
The empty stream
Produces a collection containing the results of some element computation a number of times.
Produces a collection containing the results of some element computation a number of times.
the number of elements contained in the collection.
the element computation
A collection that contains the results of n
evaluations of elem
.
Produces a five-dimensional collection containing the results of some element computation a number of times.
Produces a five-dimensional collection containing the results of some element computation a number of times.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
the number of elements in the 4th dimension
the number of elements in the 5th dimension
the element computation
A collection that contains the results of n1 x n2 x n3 x n4 x n5
evaluations of elem
.
Produces a four-dimensional collection containing the results of some element computation a number of times.
Produces a four-dimensional collection containing the results of some element computation a number of times.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
the number of elements in the 4th dimension
the element computation
A collection that contains the results of n1 x n2 x n3 x n4
evaluations of elem
.
Produces a three-dimensional collection containing the results of some element computation a number of times.
Produces a three-dimensional collection containing the results of some element computation a number of times.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
the element computation
A collection that contains the results of n1 x n2 x n3
evaluations of elem
.
Produces a two-dimensional collection containing the results of some element computation a number of times.
Produces a two-dimensional collection containing the results of some element computation a number of times.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the element computation
A collection that contains the results of n1 x n2
evaluations of elem
.
Create an infinite stream starting at start
and incrementing by 1
.
Create an infinite stream starting at start
and incrementing by 1
.
the start value of the stream
the stream starting at value start
.
Create an infinite stream starting at start
and incrementing by
step step
.
Create an infinite stream starting at start
and incrementing by
step step
.
the start value of the stream
the increment value of the stream
the stream starting at value start
.
Produces a collection containing repeated applications of a function to a start value.
Produces a collection containing repeated applications of a function to a start value.
the start value of the collection
the number of elements contained inthe collection
the function that's repeatedly applied
a collection with len
values in the sequence start, f(start), f(f(start)), ...
An infinite stream that repeatedly applies a given function to a start value.
An infinite stream that repeatedly applies a given function to a start value.
the start value of the stream
the function that's repeatedly applied
the stream returning the infinite sequence of values start, f(start), f(f(start)), ...
Creates a new builder for a stream
Creates a new builder for a stream
the type of the collection's elements
Produces a collection containing equally spaced values in some integer interval.
Produces a collection containing equally spaced values in some integer interval.
the start value of the collection
the end value of the collection (the first value NOT contained)
the difference between successive elements of the collection (must be positive or negative)
a collection with values start, start + step, ...
up to, but excluding end
Produces a collection containing a sequence of increasing of integers.
Produces a collection containing a sequence of increasing of integers.
the first element of the collection
the end value of the collection (the first value NOT contained)
a collection with values start, start + 1, ..., end - 1
Produces a collection containing values of a given function over a range of integer values starting from 0.
Produces a collection containing values of a given function over a range of integer values starting from 0.
The number of elements in the collection
The function computing element values
A collection consisting of elements f(0), ..., f(n -1)
Produces a five-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Produces a five-dimensional collection containing values of a given function over ranges of integer values starting from 0.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
the number of elements in the 4th dimension
the number of elements in the 5th dimension
The function computing element values
A collection consisting of elements f(i1, i2, i3, i4, i5)
for 0 <= i1 < n1
, 0 <= i2 < n2
, 0 <= i3 < n3
, 0 <= i4 < n4
, and 0 <= i5 < n5
.
Produces a four-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Produces a four-dimensional collection containing values of a given function over ranges of integer values starting from 0.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
the number of elements in the 4th dimension
The function computing element values
A collection consisting of elements f(i1, i2, i3, i4)
for 0 <= i1 < n1
, 0 <= i2 < n2
, 0 <= i3 < n3
, and 0 <= i4 < n4
.
Produces a three-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Produces a three-dimensional collection containing values of a given function over ranges of integer values starting from 0.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
the number of elements in the 3nd dimension
The function computing element values
A collection consisting of elements f(i1, i2, i3)
for 0 <= i1 < n1
, 0 <= i2 < n2
, and 0 <= i3 < n3
.
Produces a two-dimensional collection containing values of a given function over ranges of integer values starting from 0.
Produces a two-dimensional collection containing values of a given function over ranges of integer values starting from 0.
the number of elements in the 1st dimension
the number of elements in the 2nd dimension
The function computing element values
A collection consisting of elements f(i1, i2)
for 0 <= i1 < n1
and 0 <= i2 < n2
.
This method is called in a pattern match { case Seq(.
This method is called in a pattern match { case Seq(...) => }.
the selector value
sequence wrapped in an option, if this is a Seq, otherwise none
The object
Stream
provides helper functions to manipulate streams.1.1 08/08/03
2.8