POCKETLANG PLAYGROUND


Run
# Python like import statement. from lang import clock as now # A recursive fibonacci function. def fib(n) if n < 2 then return n end return fib(n-1) + fib(n-2) end # Prints all fibonacci from 0 to 10 exclusive. for i in 0..10 print("fib($i) = ${fib(i)}") end

...