next up previous contents index
Next: GeneratorException Up: Generator Previous: interlacing   Contents   Index


next!,partialNext!


Usage

next! g
partialNext! g


Signatures

next!: % $\to$ T
partialNext!: % $\to$ Partial T


Parameter Type Description
g % a generator


Description

next!(g) and partialNext!(g) both return the next element produced by g, updating g. If g is empty, then next!(g) throws the exception GeneratorException, while partialNext!(g) returns failed .



Manuel Bronstein 2004-06-28