IteratorTools
IteratorTools copied to clipboard
Permutation function
Hi!
I found that the permutation function no working well.
I tried this way:
let comb = [1,2,3,4,5,6,7].permutations(repeatingElements: false) print(comb)
Gives me error. I think something wrong with the public struct CartesianProduct<S: Sequence>: IteratorProtocol, Sequence. I got the following error:
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16f757f60)
Any ideas?