3bi ( x y z p q -- )
Factor handbook > The language > Combinators > Dataflow combinators > Cleave combinators

Prev:2bi ( x y p q -- )
Next:tri ( x p q r -- )


Vocabulary
kernel

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


Word description
Applies p to the three input values, then applies q to the three input values.

Examples
If [ p ] and [ q ] have stack effect ( x y z -- ), then the following two lines are equivalent:
[ p ] [ q ] 3bi 3dup p q

In general, the following two lines are equivalent:
[ p ] [ q ] 3bi [ p ] 3keep q


Definition

: 3bi ( x y z p q -- ) [ 3keep ] dip call ; inline