permutation() behaves strangely with input arrays with more than 32 entries.
Somehow it seems to only consider the first number of entries as difference from a multiple of 32 - e.g. from an input of 71 entries it only used the first 7 [ 71 - 2 * 32 = 7 ].
Poking around permutation() function and noticing the bigCombination() variant, I found that using that instead of combination() makes it work correctly.
I don't know whether you want to introduce a new bigPermutation() function or maybe just patch existing permutation() function:
permutation()
behaves strangely with input arrays with more than 32 entries.Somehow it seems to only consider the first number of entries as difference from a multiple of 32 - e.g. from an input of 71 entries it only used the first 7 [ 71 - 2 * 32 = 7 ].
Poking around
permutation()
function and noticing thebigCombination()
variant, I found that using that instead ofcombination()
makes it work correctly.I don't know whether you want to introduce a new
bigPermutation()
function or maybe just patch existingpermutation()
function: