cartesian
Computes the cartesian product of the two arrays. Returns a list of pairs where the first element of the pair is from the first array and the second element of the pair is from the second array. This produces all possible combinations of the elements as the pairs. If the first array has n elements and the second array has m elements then the number of pairs produced is n x m.
Computes the cartesian product of the two collections. Returns a list of pairs where the first element of the pair is from the first collection and the second element of the pair is from the second collection. This produces all possible combinations of the elements as the pairs. If the first collection has n elements and the second collection has m elements then the number of pairs produced is n x m.