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.
This comment is hidden because it contains spoiler information about the solution
Those are two pairs of (empty) single quotes, not one pair of double quotes surrounding a comma...
This comment is hidden because it contains spoiler information about the solution
Dashes and Underscores should both be replaced, this can be done with a fairly simple line.
I would suggest googling " regex replace character with another". This should also
help take care of leading and ending underscores on it's own.
regardless of input Camel Case words should always have lowercase letters aside from first letter
of every word starting from second word.
This is my first post on codeWars. If I have by anychance done anything against posting convention
please let me know.
Care to elaborate why?
This comment is hidden because it contains spoiler information about the solution
Yes, it's python 2. See the fork for the python 3 version.
Haskell random test might be generating some weird
Char
s, I could not figure it out myself.Not a kata issue then, I guess.
This comment is hidden because it contains spoiler information about the solution
You did miss a couple of parentheses in there though.
$
has really low precedence.Also, GHC might already optimise
(++) . ([])
to(:)
. If there should be performance problems, profiling may be a better bet than trying to be smarter than GHC.