Hello all, I'm really new to APL and I was trying to get all combinations of a list.
For example, if we have this list: 1 2 3
Then, the result should be:
1│2│1 2│3│1 3│2 3│1 2 3
I've found this solution on `aplcart.info` but it seems a bit complex:
{⌿∘⍵¨↓⌽⍉2⊥⍣¯1⊢¯1+⍳2*≢⍵}
Is there a simpler solution?