Y
Hacker News
new
|
ask
|
show
|
jobs
by
ptrkrlsrd
2421 days ago
My favorite is this one-liner for generating the Fibonacci sequence in Haskell:
fibonacci = 1 : 1 : [x + y | (x, y) <- zip fibonacci (tail fibonacci)]