, , Array.permutations. Array.permutation(n) - , n .
[1,2,3] n = 1 1, 2, 3
[1,2,3] n = 2 [1,2] [2,1] [1,3] [3,1] [2,3] [3,2]
Array.permutations(Array.length)
Array.combination(n) , n .
[1,2,3], n = 1.
: 1, 2 3.
[1,2,3], n = 2. .
[1,2], [1,3] [2,3]
N (N = Array.Length)
So, in the case of [1,2,3], if n = 3, there is only one way to make a choice using all the elements. This is [1,2,3]. This is why your code returns only one combination.