Handbook
Glossary
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
x
an
object
y
an
object
z
an
object
quot
a
quotation
Outputs
x
an
object
y
an
object
z
an
object
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
IN:
kernel
:
3dip
( x y z quot -- x y z )
swap
[
2dip
]
dip
;