Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Created August 9, 2011 23:21
Show Gist options
  • Select an option

  • Save jeremytregunna/1135477 to your computer and use it in GitHub Desktop.

Select an option

Save jeremytregunna/1135477 to your computer and use it in GitHub Desktop.
fib := n ->
0 to: 1 includes? n ifTrue: return n
fib: n - 1. + fib: n - 2.
fib := method: n, ->
0 to: 1 includes? n ifTrue: return 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