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.
Remember the spoiler flag next time when posting solution-related stuff ~~
This comment is hidden because it contains spoiler information about the solution
Yeaaah! Nice, man. :)
Thank You :)
It's as simple as it looks like while I read about ruby build-in max_by.
Hey @gregziolo, sup? The documentation for the
max_by
method: http://ruby-doc.org/core-2.2.2/Enumerable.html#method-i-max_byThey get the max value from an Enumerable, in this case a list.
The
&block
is the block you pass as a parameter for themax_by
. e.gAny doubt, please reply! :D
how does it works?