map-product ( ... seq quot: ( ... elt -- ... n ) -- ... n )


Vocabulary
sequences.extras

Inputs
seqa sequence
quota quotation


Outputs
nan integer


Word description
Like
map product

, but without creating an intermediate sequence.

Definition


: map-product
( ... seq quot: ( ... elt -- ... n ) -- ... n )
[ 1 ] 2dip [ [ swap ] ] dip [ dip * ] curry compose each ;
inline