push-either ( ..a elt quot: ( ..a elt -- ..b ? ) accum1 accum2 -- ..b )


Vocabulary
sequences

Inputs
eltan object
quota quotation
accum1a vector
accum2a vector


Outputs
None

Word description
Pushes the input object onto one of the accumulators; the first if the quotation yields true, the second if false.

See also
push, push-when, pop, pop*, prefix, suffix, suffix!

Definition


: push-either
( ..a elt quot: ( ..a elt -- ..b ? ) accum1 accum2 -- ..b )
[ 1check ] 2dip ? push ; inline