output>array ( quot -- array )
Factor handbook » The language » Combinators » Smart combinators

Prev:output>sequence ( quot exemplar -- seq )
Next:reduce-outputs ( quot operation -- )


Vocabulary
combinators.smart

Inputs
quota quotation


Outputs
arrayan 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