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.
bc it has type
[a] -> [[a]] -> a
True. I had wasted a lot of time thinking what went wrong until I saw your comment. By convention, the minus sign is never placed in the denominator in a reduced fraction. I think this should be an issue rather than a suggestion.
Still no random tests. Throwing
error
s is not idiomatic Haskell - I don't understand why you removed theMaybe
.Data.Char has a function called
toLower
that will take any char and make it lowercase if it's uppercase, and do nothing if it's not. It is more efficient than this implementation.You should make them keep the negative number of a negative fraction in the numerator. I did that and got confused when it wouldn't work on my attempts. I did the solution in haskell, and in that version of the problem there was no mention on where the negative sign should be placed or if it should be placed in a specific location at all.