Loops in Kotlin
suggest changeRemarks
In Kotlin, loops are compiled down to optimized loops wherever possible. For example, if you iterate over a number range, the bytecode will be compiled down to a corresponding loop based on plain int values to avoid the overhead of object creation.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents