generatorics icon indicating copy to clipboard operation
generatorics copied to clipboard

Permutation not work if size is higher than the number of elements in the set

Open dopey2 opened this issue 1 year ago • 0 comments

Hello,

The permutation function doesn't work if the parameter size is higher than the length of the parameter arr. Example

Works

G.permutation(['0', '1', '2', '3'], 4);

Doesn't work

G.permutation(['0', '1', '2', '3'], 5);

dopey2 avatar Apr 20 '23 12:04 dopey2