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 containing the elements of the original sequence for which the quotation output a true value.

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

Definition


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