Skip to content

Instantly share code, notes, and snippets.

@JustinSDK
Created August 9, 2013 08:20
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 JustinSDK/6191993 to your computer and use it in GitHub Desktop.
Save JustinSDK/6191993 to your computer and use it in GitHub Desktop.
Fibonacci number in a line.
print((lambda n: (lambda f: [f(i, f) for i in range(0, n)]))(10)(lambda n, fib: n if(n == 0 or n == 1) else fib(n - 1, fib) + fib(n - 2, fib)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment