My permutation code let me find a kotlin compiler ...
# advent-of-code
b
My permutation code let me find a kotlin compiler bug 😦 https://youtrack.jetbrains.com/issue/KT-35337?project=kt
k
Sequence can't always be iterated over multiple times
b
Your right. It should probably be
List<T>.permutations
. But this still crashes the kotlin compiler. My guess is that something goes wrong with the recursion combined with coroutines.
k
What coroutines?
b
I’m pretty sure the
sequence
builder function uses the suspend functionality to work.
k
Oh, right