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