2cleave ( x y seq -- )
Factor documentation > Factor handbook > The language > Combinators > Dataflow combinators > Cleave combinators
Prev:cleave ( x seq -- )
Next:3cleave ( x y z seq -- )


Vocabulary
combinators

Inputs and outputs
xan object
yan object
seqa sequence of quotations with stack effect ( x y -- ... )


Word description
Applies each quotation to the two objects in turn.

Definition
USING: kernel sequences ;

IN: combinators

: 2cleave ( x y seq -- ) [ 2keep ] each 2drop ;