Skip to content

Instantly share code, notes, and snippets.

@stepahn
Created May 1, 2010 21:58
Show Gist options
  • Save stepahn/386693 to your computer and use it in GitHub Desktop.
Save stepahn/386693 to your computer and use it in GitHub Desktop.
fib = Hash.new {|hash, key| hash[key-1] + hash[key-2]}
fib[0],fib[1] = 0, 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment