Skip to content

Instantly share code, notes, and snippets.

@rcillo
Last active January 3, 2016 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcillo/8447647 to your computer and use it in GitHub Desktop.
Save rcillo/8447647 to your computer and use it in GitHub Desktop.
defmodule Fibonacci do
def f(0), do: 1
def f(1), do: 1
def f(n), do: f(n - 1) + f(n - 2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment