com.phasmidsoftware.lascala.fp.Streamer
case class Streamer[X](var s: Stream[X]) extends () => X
This class is based on a mutable Stream. Its purpose is like a one-time-pad: each value is yielded by the Streamer once and once only.
Type parameters
- X
-
the underlying type and the type of the result
Value parameters
- s
-
the Stream
Attributes
- Graph
-
- Supertypes
-
trait Serializable
trait Product
trait Equals
trait () => X
class Object
trait Matchable
class Any
Show all
Members list
This method mutates this Streamer by resetting the value of s to its tail and returning its head.
This method mutates this Streamer by resetting the value of s to its tail and returning its head.
Attributes
- Returns
-
the head of the Stream
- Definition Classes
-
Function0
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
-
Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an Iterator[Any]
- Inherited from:
-
Product
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Function0 -> Any
- Inherited from:
-
Function0