input<sequence ( seq quot -- )
Factor handbook » The language » Combinators » Smart combinators

Prev:nullary ( quot -- )
Next:input<sequence-unsafe ( seq quot -- )


Vocabulary
combinators.smart

Inputs
seqa sequence
quota quotation


Outputs
None

Word description
Infers the number of inputs, n, to quot and calls the quot with the first n values from a sequence.

Examples
USING: combinators.smart math prettyprint ; { 1 2 3 } [ + + ] input<sequence .
6


Definition