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