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() { |
||||
let x = (1 + 2 * (3 + 2)) |
||||
println(x) |
||||
let arr = [1, 2, 3] |
||||
|
||||
for x in arr { |
||||
if x == 2 { |
||||
break |
||||
} else { |
||||
println(x) |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue