filter-map ( ... seq filter-quot: ( ... elt -- ... ? ) map-quot: ( obj -- obj' ) -- ... newseq )


Vocabulary
sequences.extras

Inputs
seqa sequence
filter-quotan object
map-quotan object


Outputs
newseqa sequence


Word description
Filter the given sequence with filter-quot, then perform a map on the filtered sequence with map-quot.

Definition


: filter-map
( ... seq filter-quot: ( ... elt -- ... ? ) map-quot: ( obj -- obj' ) -- ... newseq )
pick filter-map-as ; inline