GEN:


Vocabulary
generators

Syntax
GEN: word ( stack -- generator ) definition... ;


Word description
Creates a generator word in the current vocabulary. When executed, the word will capture its inputs from the stack and a generator object will be returned. The output of generator words must always be only a single value (the generator).

Definition