cartesian-each ( ... seq1 seq2 quot: ( ... elt1 elt2 -- ... ) -- ... )

Factor handbook » The language » Collections » Sequence operations » Cartesian product operations

Factor handbook » The language » Collections » Sequence operations » Cartesian product operations

Next: | cartesian-map ( ... seq1 seq2 quot: ( ... elt1 elt2 -- ... newelt ) -- ... newseq ) |

Vocabulary

sequences

Inputs

Outputs

None

Word description

Applies the quotation to every possible pairing of elements from the two sequences.

See also

cartesian-find, cartesian-map, cartesian-product, cartesian-product-as

Definition

sequences

Inputs

seq1 | a sequence |

seq2 | a sequence |

quot | a quotation with stack effect ( ... elt1 elt2 -- ... ) |

Outputs

None

Word description

Applies the quotation to every possible pairing of elements from the two sequences.

See also

cartesian-find, cartesian-map, cartesian-product, cartesian-product-as

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)