(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Tell whether there is a next value.
Tell whether there is a next value. The stream is infinite, the answer is Yes.
true
Produces a list of n values
Produces a list of n values
the number of values
a list of values
Transforms this stream to the stream of values of type U, by mapping
Transforms this stream to the stream of values of type U, by mapping
the type of result of f
the function that transforms data
another InfiniteStream, with values produced by applying f
Generates data of given type; it never ends, and it's not resettable. If you want to generate the same data again, instantiate a new generator with the same seed.