Vocabulary
splitting

Inputs
seqa sequence
quota quotation with stack effect ( ... elt -- ... ? )


Outputs
beforea new sequence
aftera new sequence


Word description
Splits seq at the first occurrence of an element for which quot gives a true output and outputs the pieces before and after the split.

Definition


: split1-when
( ... seq quot: ( ... elt -- ... ? ) -- ... before after )
[ snip ] (split1-when) ; inline