0
The cartesian product of two multisets \$A\$ and \$B\$ is multiset of all ordered pairs consisting of an element of \$A\$ and an element of \$B\$. For example, the cartesian product of \$\{1, 2, 7, 1\}\$ and \$\{4, 6\}\$ is \$\{[1,4],[1,6],[2,4],[2,6],[7,4],[7,6],[1,4],[1,6]\}\$, where the order ...