reject ( ... seq quot: ( ... elt -- ... ? ) -- ... subseq )


Vocabulary
sequences

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


Outputs
subseqa new sequence


Word description
Applies the quotation to each element in turn, and outputs a new sequence removing the elements of the original sequence for which the quotation outputs a true value.

See also
filter, filter-as, filter!, reject-as, reject!, sift, harvest

Definition


: reject
( ... seq quot: ( ... elt -- ... ? ) -- ... subseq )
over reject-as ; inline