product-map ( ... sequences quot: ( ... seq -- ... value ) -- ... sequence )
Product sequences

Prev:<product-sequence> ( sequences -- product-sequence )
Next:product-map-as ( ... sequences quot: ( ... seq -- ... value ) exemplar -- ... sequence )


Vocabulary
sequences.product

Inputs
sequencesa sequence
quota quotation with stack effect ( ... seq -- ... value )


Outputs
sequencea sequence


Word description
Calls quot for every element of the cartesian product of sequences and collects the results from quot into an output sequence.

Notes
[ ... ] product-map is equivalent to, but more efficient than, <product-sequence> [ ... ] map.

See also
product-each, product-find

Definition


: product-map
( ... sequences quot: ( ... seq -- ... value ) -- ... sequence )
over product-map-as ; inline