sunflower/test.foo

28 lines
332 B
Plaintext

print("hello".eq("world"));
print((40 + 2).is_42() == true);
let y = 0;
def test_func(x) {
print(x);
while x < 100 {
print(x);
x = x + 1;
if x > 10 {
return "bar";
}
}
return "foo";
}
def add_one(x) {
x + 1
}
let x = test_func(y);
print(x);
print(add_one(41));