Examples

Hello world!

print "Hello world!"
let greet = [name] => print "Hello {name}!"
greet "world" //Hello world!

Add

let age = 28
let add = [a, b] => a + b
print add(3, 2)  //5
print age:add(1) //29

Blast off!

for (10 to 0) [n] -> {
    print n
}
print "Blast off!"

Fizzbuzz

Fibonacci

Naive:

Manual memoisation:

Memoisation and overloading:

Keydown

Last updated

Was this helpful?