Similar to the while loop, only the control statement is evaluated after the loop. Therefore, the loop will always execute at least once.
var i: Int = 0
i += 1
} while i < 3
Get monthly updates about new articles, cheatsheets, and tricks.