Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 18, 2019 02:49
Show Gist options
  • Save christineponyl/791b6824c3475c71d14502ccdb94715e to your computer and use it in GitHub Desktop.
Save christineponyl/791b6824c3475c71d14502ccdb94715e to your computer and use it in GitHub Desktop.
actor Main
let env: Env
new create(env': Env) =>
env = env'
env.out.print(fib(5).string())
fun fib(n: U64): U64 =>
match n
| 0 => 0
| 1 => 1
else
fib(n - 1) + fib(n - 2)
env.out.print(n.string())
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment