Handbook
Glossary
reject-as ( ... seq quot: ( ... elt -- ... ? ) exemplar -- ... subseq )
Vocabulary
sequences
Inputs
seq
a
sequence
quot
a
quotation
with stack effect
( ... elt -- ... ? )
exemplar
a
sequence
Outputs
subseq
a 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
USING:
kernel
;
IN:
sequences
:
reject-as
( ... seq quot: ( ... elt -- ... ? ) exemplar -- ... subseq )
[
negate
]
[
filter-as
]
bi*
;
inline