edlang/programs/example.ed

10 lines
130 B
Plaintext

fn add(a: i32, b: i32) -> i32 {
return a + b;
}
fn main() -> i32 {
let x = 2 + 3;
let y = add(x, 4);
return y;
}