Ad
  • Custom User Avatar

    That's resulting more from the language than from the code itself. Exactly the same code can be written in Python or JS, and it will not look as good.

    Also, could have been candiesToBuy (fromIntegral -> n) = foldr1 lcm [1..n]. It's just syntax again, but I like that even better.