mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
10 lines
234 B
Plaintext
10 lines
234 B
Plaintext
// There's only `for`, no `while`, no `until`
|
|
for i := 1; i < 10; i++ {
|
|
}
|
|
for ; i < 10; { // while - loop
|
|
}
|
|
for i < 10 { // you can omit semicolons if there is only a condition
|
|
}
|
|
for { // you can omit the condition ~ while (true)
|
|
}
|