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.
If you have return, it is an explicit return which can be at any point in a method, but the last expression of any method is always returned as an implicit return, so no return is ever needed for the last expression in a Ruby method.
Thank you for this, learned a lot!
yep, but it's optional
Ruby has an implicit
return
for the last statement in methods.nope, not in ruby
Don't you need to put 'return' in order to use the function properly elsewhere?
So simple.. Love it!
Really is a smart and clear solution compared to mine.. holy!