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.
Fixed
Thanks
Nice one!
In your example, ["aa"] is not an object for applying the :add method, but an array of arguments for the :add method, so you don't need to apply the :add method to ["aa"], but you need to apply the :add method with all the arguments from [ "aa"](that is, here with one argument "aa") to all objects of a some class(this class already has a :add method) from the array from which the invoke method is called.
An example from the description can be used as a test. In it, items=[ExampleItem.new, nil, ExampleItem.new] is an array of objects from which the invoke method is called, which must be added to the Array class so that it calls the passed method (for example: add) with arguments for each element of the array (here items) if the condition from the block for this element is met.
It looks clearly better!
It looks like Go random test cases are bugged.
Sometimes the expected solution is wrong.
Take a look please.
description overhauled
it won't give an extra column? if not it's quite cool
Really bad description...
Don't approve such katas, please.
php is really too permissive...
I see everyone chose the easy route.
This comment is hidden because it contains spoiler information about the solution
You should write tests !
Munto, your method fails the following obvious test case:
test(['n', 'n', 'n', 'n', 'e', 'e', 'n', 's', 'e', 'w'], false)
Thanks a lot!
If you could take a look at this kata issue, it would be great :)
https://www.codewars.com/kata/58305403aeb69a460b00019a/discuss/#5ceaa74607d4b7002dd158cd
Loading more items...