2push-when ( ..a elt1 elt2 quot: ( ..a elt1 elt2 -- ..b ? ) accum -- ..b )


Vocabulary
sequences.extras

Inputs
elt1an object
elt2an object
quota quotation with stack effect ( ..a elt1 elt2 -- ..b ? )
accuman object


Outputs
None

Definition


: 2push-when
( ..a elt1 elt2 quot: ( ..a elt1 elt2 -- ..b ? ) accum -- ..b )
[ keepd ] dip rot [ push ] [ 2drop ] if ; inline