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.
The ternary operator is redundant here.
It's the * operator e.g. 2 * 3 = 6
Find out more about this solution by inspecting: https://apidock.com/ruby/Enumerable/reduce
What is the (:*) called? I'd like to learn about it. Thanks.
The fork was approved but it didn't over write the sample test cases which was odd.
what does the +$ do?
Still facing the same problem with the Ruby version!
Approved, thanks
I've forked the translation and changed the example tests to use the correct method name.
I'd love to help (I just now bumped into the same issue).
In fact I tried to help, but, alas, when I click the "Edit Kata" button, all I get is an error message.
Yep, that was what i was alluding too, if changed just saves having to change the test cases manually.
It's just a typo, essentially, on the method calls for the default Test Cases for Ruby. Should call "Test.assert_equals(num_obj(....))" rather than the current "Test.assert_equals(numObj(....))"
Ah ok, afraid that isnt my area of expertise... Can anyone advise?
Sorry, that would help, this is for Ruby.
Hi thanks for the feedback, what language are you attempting this in?
Hi, enjoyed this - but the test cases call the method numObj and the pre-defined method is called num_obj which is the method name that works with the final submit.