mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
8 changed files with 78 additions and 3 deletions
@ -1,4 +1,11 @@ |
|||||||
fn main() { |
fn main() { |
||||||
let x = (1 + 2 * (3 + 2)) |
let arr = [1, 2, 3] |
||||||
println(x) |
|
||||||
|
for x in arr { |
||||||
|
if x == 2 { |
||||||
|
break |
||||||
|
} else { |
||||||
|
println(x) |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
Loading…
Reference in new issue