output>array ( quot -- array ) (original) (raw)
Vocabulary
combinators.smart
Inputs
quot | a quotation |
---|
Outputs
array | an array |
---|
Word description
Infers the number of outputs from the quotation and constructs an array from those outputs.
Examples
USING: combinators combinators.smart math prettyprint ; 9 [ { [ 1 - ] [ 1 + ] [ sq ] } cleave ] output>array .
{ 8 10 81 }
Definition
: output>array ( quot -- array ) { } output>sequence ; inline