Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Using split(markers) with spread operator is really ingenious, respect!
Balance of readability and performance. Beautiful.
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.In my opinion, this is the beautiful and concise solve I've ever seen!