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.
Good call. I should have done this from the start!
Unfortunately most of the tests are compile-time and therefore quite slow, and the codewars servers have inconsistent performance regarding that. However, writing a concise proof will also speed it up considerably.
Distance is euclidean distance. What kind of distance were you thinking of?
I didn't spot that issue, thank you for pointing that out. Go with the version that's included in the implementation. ie the first example you gave.
I've now updated the description.
Yeah, this is intended to be a sort of intro to template Haskell. I'm glad you liked it!
Thanks for the translations! They seem to be great, there's just an issue with the descriptions, which I'm iffy on. Could you take the time to have a check of the descriptions? I don't want to make a new translation and take the credit.
My impulse would be to ignore digits, to try and keep all languages as consistent as possible by translating the tests directly. However, if you would like to handle digits I think you're right to treat them as lowercase letters, but remember to add examples in the description. Thank you for translating!
Yes, I see this. This is in all languages it seems, and so I'm reluctant to add tests considering the number of solutions that could be invalidated.
@Blind4Basics the function's returning
""
when given an empty string is enforced in all translations. I don't see what you mean?Fixed, thanks for the flag!
Just fixed that, thank you.
The
changeCase "" "kebab" = Nothing
was an oversight of mine, I've updated the tests to check forchangeCase "" "kebab" = Just ""
. This was only a problem in Haskell though and was very easy to change. Thank you for bringing this to my attention.Approved, thank you!
Approved, thank you!
Thank you so much, this is a great translation! There's only one thing that's an issue, which is the description. Could you add examples for Haskell like the ones for Javascript? I would add this myself, but I'm reluctant to do this in your place, since it's your work.
Loading more items...