2019-09-20 16:16:55 +00:00
|
|
|
// import std;
|
2019-09-18 14:37:08 +00:00
|
|
|
|
|
|
|
fn add(a: i32, b: i32) i32 {
|
|
|
|
return a + b;
|
|
|
|
}
|
|
|
|
|
|
|
|
// type is void by default
|
|
|
|
fn main() {
|
|
|
|
std.fmt.print("piss\n");
|
2019-09-20 16:54:52 +00:00
|
|
|
std.fmt.print("2 + 2 = %d\n", add(1, 2));
|
2019-09-18 14:37:08 +00:00
|
|
|
}
|