News for hackers. Stuff that matters.
Re:Ask HN: What is the most beautiful piece of code you've e... by rnhmjoj on Monday October 28, 2019 @04:35AM (#21375203)
In haskell you can also use the `product` function:

    factorial n = product [1..n]

There are no comments on this comment yet.