I'm just playing around with Kotlin, I'm a Kotlin ...
# getting-started
d
I'm just playing around with Kotlin, I'm a Kotlin newbie. In this case, maybe it's because of the way Kotlin capture the startIndex and endIndex variable for the code inside the lambda expression. (Like capture by reference in C++ lambda)