2filter-map-as ( ... seq1 seq2 filter-quot: ( ... elt1 elt2 -- ... ? ) map-quot: ( elt1 elt2 -- obj ) exemplar -- ... newseq )


Vocabulary
sequences.extras

Inputs
seq1an object
seq2an object
filter-quota quotation with stack effect ( ... elt1 elt2 -- ... ? )
map-quota quotation with stack effect ( elt1 elt2 -- obj )
exemplaran object


Outputs
newseqan object


Definition


: 2filter-map-as
( ... seq1 seq2 filter-quot: ( ... elt1 elt2 -- ... ? ) map-quot: ( elt1 elt2 -- obj ) exemplar -- ... newseq )
5 npick length over
[ 2filter-mapper-for [ 2each ] dip ] 2curry dip like ;
inline