News for hackers. Stuff that matters.
Re:Ask HN: What is the most beautiful piece of code you've e... by ptrkrlsrd on Monday October 28, 2019 @07:39AM (#21376015)
My favorite is this one-liner for generating the Fibonacci sequence in Haskell:

  fibonacci = 1 : 1 : [x + y | (x, y) <- zip fibonacci (tail fibonacci)]

There are no comments on this comment yet.