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.
walrus. neat.
Haskell ->
This kata was confusing and there's a discrepancy between the description and the test cases. The description says:
-- The following are some examples of how this class is used:
-- collection = ['a','b','c','d','e','f']
-- itemsPerPage = 4
...
-- pageIndex collection itemsPerPage (-20)
shouldBe
Nothingbut the automated test cases require negative pageIndex item = Just 0
Took me hours to figure out what was going on because of Haskell's terse error messages.
This comment is hidden because it contains spoiler information about the solution