I have a list,
param2 = {
{-qlim, -qlim},
{-qlim, qlim},
{qlim, -qlim},
{qlim, qlim}
};
and want to get combination of them with,
Flatten[Table[{param2[[i]], param2[[j]]}, {i, 4}, {j, 4}], 2]
But this gives me list which includes sets that have item twice. I want to get
{1,2},{1,3},{1,4},{2,3},{2,4},{3,4}
qlim? – corey979 Jan 01 '17 at 22:53Flatten[Table[{i, j}, {i, 1, 4}, {j, i + 1, 4}], 1]. – corey979 Jan 01 '17 at 22:55Table[]shows how you could've done it. – J. M.'s missing motivation Jan 02 '17 at 00:09