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.
No, you want the solution that uses
mapM
for that:https://www.codewars.com/kata/reviews/54a85407046913eae40000e1/groups/56e423f4de7d1a97e7000c78
Most important thing I learned while doing this kata in Haskell - do not use Int to represent 16 ranks, just make god damn ADT for them :)
Will it stop the mapping, if we, for example, have a huge recipe and really small storage (like 2-3 items)?