mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
5 changed files with 12 additions and 7 deletions
@ -1,8 +1,9 @@
|
||||
fn main() { |
||||
my_print([1, 2, 3]) |
||||
} |
||||
|
||||
let arr = [1, 2, 3] |
||||
|
||||
for x in arr { |
||||
_printf(x) |
||||
fn my_print(x: int[]) { |
||||
for i in x { |
||||
println(i) |
||||
} |
||||
} |
Loading…
Reference in new issue