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 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 builder for streams
The factory for streams.
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
An alternative way of building and matching Streams using Stream.
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
The empty stream
the type of the collection's elements
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
.
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 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)
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 concatenation of all streams returned by an iterator
The concatenation of all streams returned by an iterator
(Since version 2.8.0) use xs.toStream.flatten instead
The concatenation of a sequence of streams
The concatenation of a sequence of streams
(Since version 2.8.0) use xs.flatten instead
Create an infinite stream containing the given element.
Create an infinite stream containing the given element.
the element composing the resulting stream
the stream containing an infinite number of elem
(Since version 2.8.0) use continually' instead
A stream containing all elements of a given iterator, in the order they are produced.
A stream containing all elements of a given iterator, in the order they are produced.
The iterator producing the stream's elements
(Since version 2.8.0) use it.toStream instead
(Since version 2.8.0) use #:: instead
Create a stream containing several copies of an element.
Create a stream containing several copies of an element.
the length of the resulting stream
the element composing the resulting stream
the stream composed of n elements all equal to elem
(Since version 2.8.0) use fill(n, elem) instead
Create a stream with element values
vn+1 = step(vn)
where v0 = start
and elements are in the range between start
(inclusive)
and end
(exclusive)
Create a stream with element values
vn+1 = step(vn)
where v0 = start
and elements are in the range between start
(inclusive)
and end
(exclusive)
the start value of the stream
the end value of the stream
the increment function of the stream, must be monotonically increasing or decreasing
the stream starting at value start
.
(Since version 2.8.0) use iterate' instead.
The object
Stream
provides helper functions to manipulate streams.1.1 08/08/03
2.8