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.
I suddenly feel like a monkey with a typewriter
[Javascript]
Implementing Maybe.do is much easier once you have the details!
m is a list of arguments- m[0] is the Maybe Monad and m[1...] are functions of signature value -> value.
Last two C# tests are broken. Three spaces must be turned into a single space in the output, but the whitespaces in the input string and the expected result are not consistent.
Here's what you get for the two tests- I've used * to denote a space.
The rest of the tests pass, and some use whitespace so it isn't a corner case.
input string: ..*
Expected: "EE"
But was: "EE"
input string: ...---...-.-.---.....--.-..-..-.-.-.--....-.---.---...-.----..-.---..---.--....---...-..-.-......-...---..-.---..-----.*.-.-.-**
Expected: "SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG."
But was: "**SOS! THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG." (only the first two spaces were incorrect)
For the F# version, I was annoyed by the two aspects:
The order of the input list shouldn't matter at all to the test, and yet it clearly does in this case.