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 adjusted the reference solution so that it doesn't modify the existing hash.
It doesn't test for not doing this, but almost no kata does that, though it could be a BP for languages like Ruby which have bang annotation for mutating functions?
( my emphasis )
Maybe the function should have a different name ( sounds like a very useful convention BTW! ), but that's not the original issue, and I'm not sure it qualifies as an issue ( it might. I don't know how strict that convention is generally adhered to ).
The description is very clear that the hash should be modified in place.
Should this be closed, or not?
If the Hash is modified in place the method name should end with a
!
, according to convention.Maybe the problem was changed, but this wasn't a problem for me.
It means non-alphanumeric. A couple of the tests contain non-alpha characters.
This comment is hidden because it contains spoiler information about the solution