mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-01 22:40:10 +10:00
10 lines
181 B
Plaintext
10 lines
181 B
Plaintext
//check functions are first class citizens
|
|
fn hello() {
|
|
print "Hello world";
|
|
}
|
|
|
|
fn identity(x) {
|
|
return x;
|
|
}
|
|
|
|
assert identity(hello) == hello, "First class function check failed"; |