However, I needed a traditional for loop (like java) with an immediately terminating state scope, exit condition that evaluates before loop-body execution, and a post-execution operation (my use case was complicated: I needed to repeat using a dynamic exit condition based on a compression routine and powers of 2). ![]() Kotlin is trying to enforce fluent iteration, which covers the vast majority of looping constructs.
0 Comments
Leave a Reply. |