IteratorTools icon indicating copy to clipboard operation
IteratorTools copied to clipboard

Permutation function

Open csbence10 opened this issue 7 years ago • 0 comments

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?

csbence10 avatar Aug 18 '18 22:08 csbence10