2curry ( obj1 obj2 quot -- curried )
Factor handbook » The language » Combinators » Compositional combinators

Prev:compose ( quot1 quot2 -- compose )
Next:3curry ( obj1 obj2 obj3 quot -- curried )


Vocabulary
kernel

Inputs
obj1an object
obj2an object
quota callable


Outputs
currieda curried


Word description
Outputs a callable which pushes obj1 and obj2 and then calls quot.

Notes
This operation is efficient and does not copy the quotation.

Examples
USING: kernel math prettyprint ; 5 4 [ + ] 2curry .
[ 5 4 + ]


Definition

: 2curry ( obj1 obj2 quot -- curried ) curry curry ; inline