4dip ( w x y z quot -- w x y z )
Factor handbook » The language » Combinators » Dataflow combinators » Preserving combinators

Prev:3dip ( x y z quot -- x y z )
Next:keep ( ..a x quot: ( ..a x -- ..b ) -- ..b x )


Vocabulary
kernel

Inputs
wan object
xan object
yan object
zan object
quota quotation


Outputs
wan object
xan object
yan object
zan object


Word description
Removes w, 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 ] dip

[ foo bar ] 4dip


Definition

: 4dip ( w x y z quot -- w x y z ) swap [ 3dip ] dip ; inline