tri-curry* ( x y z p q r -- p' q' r' )
Factor handbook » The language » Combinators » Compositional combinators » Curried dataflow combinators

Prev:bi-curry* ( x y p q -- p' q' )
Next:bi-curry@ ( x y q -- p' q' )


Vocabulary
kernel

Inputs
xan object
yan object
zan object
pa quotation with stack effect ( x -- ... )
qa quotation with stack effect ( y -- ... )
ra quotation with stack effect ( z -- ... )


Outputs
p'[ x p ]
q'[ y q ]
r'[ z r ]


Word description
Partially applies p to x, q to y and r to z.

Notes
The following two lines are equivalent:
[ p ] [ q ] [ r ] tri-curry* [ call ] tri@ [ p ] [ q ] [ r ] tri*

The combination tri-curry* tri is equivalent to a stack shuffle preceding 2tri*:
[ p ] [ q ] [ r ] tri-curry* tri [ [ over ] dip over ] dip [ p ] [ q ] [ r ] 2tri*


Definition