all possible combinations of n sets

combinations(n)

Arguments

n

dim