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.
Thanks for the explanation. I was trying to work out a formula to simplify my solution but gave up.
L and M are not referring to categories. They are referring to your input variables. So if no books are given or no categories to return in a Haskell string format, then return and empty string.
Thank you for the reply!
I remain a little confused..So, as you describe it, category W should be 0 because there are no codes associated with it right? However, you also say that if a category (L or M) is empty (in other words no codes are associated with it) then an empty string should be returned?
I get it now! My mind heuristically associated uppercase L and M with categories A-Z, so I thought that by L or M being empty you were referring to the categories being empty rather than a or b (or list_of_art or list_of_cat being empty).
Is my new understanding correct?
You are more experienced than me so I'd hate to overreach. However, one suggestion that I may give is that instead of referring to the input variables as L or M in your description, you give them meaningful names such as 'booklist' (L) and 'report_categories' (M)?
Thanks again! Great kata. Got my mind working!
This comment is hidden because it contains spoiler information about the solution