mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
5 changed files with 8 additions and 19 deletions
@ -1,11 +1,9 @@
|
||||
fn main() { |
||||
let arr = [1, 2, 3] |
||||
|
||||
for x in arr { |
||||
if x == 2 { |
||||
break |
||||
} else { |
||||
println(x) |
||||
let arr = [[11, 12, 13], [21, 22, 23], [31, 32, 33]] |
||||
for i in arr { |
||||
for j in i { |
||||
println(j) |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue