mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
19 lines
237 B
Plaintext
19 lines
237 B
Plaintext
let something: bool = true;
|
|
|
|
let a: num = 4 in
|
|
println(a);
|
|
|
|
fun foo(x: bool): num = {
|
|
fun id(a: T): T = id;
|
|
|
|
if !id(x) then
|
|
return 1;
|
|
|
|
42
|
|
};
|
|
|
|
fun main(): () = {
|
|
let r: num = foo(something);
|
|
|
|
println(r);
|
|
}; |