Apologies if I do not frame my question well, I'll try my best to do so:
How can I get a list to return every possible pair combination within it?
for instance
a = [1,2,3,4]
I would like to know how I can obtain a result like this:
a= [ [1,2], [1,3] , [1,4], [2,3] , [2,4] , [3,4] ]