Skip to content

Instantly share code, notes, and snippets.

@vasily-kirichenko
Created May 30, 2012 17:46
Show Gist options
  • Save vasily-kirichenko/2837898 to your computer and use it in GitHub Desktop.
Save vasily-kirichenko/2837898 to your computer and use it in GitHub Desktop.
Fibonacci in Erlang
fib(0) -> 0;
fib(1) -> 1;
fib(N) -> fib(N - 1) + fib(N - 2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment