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