Handbook
Glossary
map-filter ( ... seq map-quot: ( ... elt -- ... newelt ) filter-quot: ( ... newelt -- ... ? ) -- ... subseq )
Vocabulary
sequences
.
extras
Inputs
seq
a
sequence
map-quot
an
object
filter-quot
an
object
Outputs
subseq
an
object
Word description
Perform a
map
on the given sequence with
map-quot
, then perform a
filter
on the result with
filter-quot
.
Definition
USING:
kernel
;
IN:
sequences.extras
:
map-filter
( ... seq map-quot: ( ... elt -- ... newelt ) filter-quot: ( ... newelt -- ... ? ) -- ... subseq )
pick
map-filter-as
;
inline