Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
2cleave ( x y seq -- )
Factor documentation
>
Factor handbook
>
The language
>
Combinators
>
Dataflow combinators
>
Cleave combinators
Prev:
cleave ( x seq -- )
Next:
3cleave ( x y z seq -- )
Vocabulary
combinators
Inputs and outputs
x
an
object
y
an
object
seq
a sequence of quotations with stack effect
( x y -- ... )
Word description
Applies each quotation to the two objects in turn.
Definition
USING:
kernel
sequences
;
IN:
combinators
:
2cleave
( x y seq -- )
[
2keep
]
each
2drop
;