Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 18, 2019 02:42
Show Gist options
  • Save christineponyl/af297d4d7583257416a4fcb8d732ae0f to your computer and use it in GitHub Desktop.
Save christineponyl/af297d4d7583257416a4fcb8d732ae0f to your computer and use it in GitHub Desktop.
actor Main
new create(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