I have a simple question coincerning the Mathematica function Tuple
.
Currently, I apply the following code
x = {1, 2, 3};
Tuples[x, 2]
Obviously I get:
How can I delete all self-loops from this list, i.e., delete {1, 1}, {2, 2}, {3, 3}
? Is there a built-in function?