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


Vocabulary
sequences

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


Outputs
subseqa new sequence


Word description
Applies the quotation to each element in turn, and outputs a new sequence of the same type as exemplar remove the elements of the original sequence for which the quotation output a true value.

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

Definition


: reject-as
( ... seq quot: ( ... elt -- ... ? ) exemplar -- ... subseq )
[ negate ] [ filter-as ] bi* ; inline