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 saw a post on reddit with this same exact problem as a challenge for an interview. I have been defeated by this one and surrendered to see the solution. This is a great kata but I feel like this should be in the 3 or 4 kyu range.
thanks
The ultimate hardcoded solution I've seen at 3kyu.
Mad Props.
You misspelled handler in your description on one of the lines.
should be
Brilliant solution, I love it!
This comment is hidden because it contains spoiler information about the solution
It would be nice if we could see what the "rest" function is in the description. I'm not sure what to do with the pipeline function. Does it invoke the functions on the object intially, then keep returning the value from the returned functions? not really sure what to do.
*update: managed to solve it, nice kata but I think it needs better examples with multiple functions.
I revised the testing methods to
Test.assertEquals
. If you're still having trouble finding a solution please let me know. I'll be checking this kata everyday. I don't want to spoil the solution. I will say that of all the solutions I've seen, none of them involve the methods you guys have just mentioned.Hey wthit56, sorry I've taken so long to respond, I've had a busy month and totally forgot about this kata. I changed the tests from
Test.expects
toTest.assertEquals
.Hopefully it will make it easier to revise your solution. The solution is quite simple, I'm sure you will get it. I'd rather not say much about it until you try it out using the new test methods. If you still have trouble I will give a better example.
This comment is hidden because it contains spoiler information about the solution
Yeah I'm having this same error, I wonder if it has to do with my solution.
I like it, great kata.
In my opinion, best practice would be to assign 'this' to a variable.
Thanks, yeah I am new to making katas. I wasn't sure how the testing library works.
I like this, I completely forgot about the indexOf method. Good job!
Loading more items...