RecurLoopCompatibility:while_marker
while condition { ... }Repeats the block while the condition is true. The condition is checked before each iteration.
Example
var n = 0
while n < 3 {
print n
n += 1
}while condition { ... }Repeats the block while the condition is true. The condition is checked before each iteration.
Example
var n = 0
while n < 3 {
print n
n += 1
}