 
 
 
 
 
 
 
 
 
 
    Usage
next! g
partialNext! g
    Signatures
next!: % T
partialNext!: % 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 .