3dip ( x y z quot -- x y z )
Factor handbook > The language > Combinators > Dataflow combinators > Preserving combinators

Prev:2dip ( x y quot -- x y )
Next:4dip ( w x y z quot -- w x y z )


Vocabulary
kernel

Inputs and outputs
xan object
yan object
zan object
quota quotation


Word description
Removes x, y, and z from the datastack, calls quot, and restores the removed objects to the top of the datastack when quot is finished.

Notes
The following are equivalent:
[ [ [ foo bar ] dip ] dip ] dip

[ foo bar ] 3dip


Definition

: 3dip ( x y z quot -- x y z ) swap [ 2dip ] dip ;