|View source on GitHub|
Base class establishing interface for stateful value generation.
ValueGenerator maintains a state, and each time
next is called, a new
value is generated and the state is advanced.
Makes an initialized state for the ValueGenerator.
|An initial state.|
next( state )
Gets next value and advances the ValueGenerator.
||The current state.|
|A pair (value, new_state) where value is the next value and new_state is the advanced state.|