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

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


Vocabulary
sequences

Inputs
seq a sequence
quot a quotation with stack effect ( ... elt -- ... ? )


Outputs
subseq a 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
USING: kernel ;

IN: sequences

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

AltStyle によって変換されたページ (->オリジナル) /