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

Prev:cleave-curry ( a quot... n -- )


Vocabulary
generalizations

Inputs
a...n objects on the datastack
quot...n quotations on the datastack
nan integer


Outputs
None

Word description
Curries the n quotations on the top of the datastack with the n values just below them. 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