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 -- )


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

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@.

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*.