Cartesian product of two or more lists: Difference between revisions
Content added Content deleted
m (→version 1: changes some whitespace and comments.) |
m (→version 1: added wording to the REXX header section.) |
||
Line 2,487: | Line 2,487: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===version 1=== |
===version 1=== |
||
This REXX version isn't limited by the number of lists or the number of sets within a list. |
|||
<lang rexx>/*REXX program calculates the Cartesian product of two arbitrary-sized lists. */ |
<lang rexx>/*REXX program calculates the Cartesian product of two arbitrary-sized lists. */ |
||
@.= /*assign the default value to @. array*/ |
@.= /*assign the default value to @. array*/ |