apply-curry ( a... quot n -- )
Factor handbook » The language » Combinators » Generalized shuffle words and combinators » Generalized combinators

Prev:spread* ( n -- quot )
Next:cleave-curry ( a quot... n -- )


Vocabulary
generalizations

Inputs
a...n values on the datastack
quota quotation
nan integer


Outputs
None

Word description
Curries each of the top n items of the datastack onto quot, leaving n quotations on the datastack. A generalization of bi-curry@ and tri-curry@.

Notes
This word can be used with cleave* and spread* to generalize dataflow patterns such as bi-curry@ bi, tri-curry@ tri, bi-curry@ bi*, and tri-curry@ tri*.

Definition