10 lines
175 B
Plaintext
10 lines
175 B
Plaintext
//check functions are first class citizens
|
|
fn hello() {
|
|
print "Hello world";
|
|
}
|
|
|
|
fn ident(x) {
|
|
return x;
|
|
}
|
|
|
|
assert ident(hello) == hello, "First class function check failed"; |