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
Why would this be more efficient?
Everything in Ruby is an object even numbers (Integer and Float classes)
As @Unihedron stated, you can define methods such as +(other), -(other), %(other)
You can even change + to do other operation (which is ofcourse a bad idea)
110% efficiency
Currently no. Also, I believe, there's already such suggestion on CW github.
This comment is hidden because it contains spoiler information about the solution
Now you have. Operators in ruby are also defined as methods, so you can use them as methods
a*b
->a.*(b)
or redefine their methodsdef *(v)this*v end
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
People usually don't rewrite kata out of the blue.