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.
This comment is hidden because it contains spoiler information about the solution
Don't forget the spoiler flag.
If it helps, here's a version of this solution with explicit arguments: https://www.codewars.com/kata/reviews/5daaddf3564ff100015dc8b2/groups/5daae6c7defe8100016bca2a
Yes. It uses the
(->)
andOrdering
Monoid
instances for that.Monoid
s rule.