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. Is. Ruby!
Why does this work ? If I run it on and online editor the output is wrong
:)
Thank you!
About the how: when the loop has only one line inside you can omit the curly braces, it's not so clear but if you're careful with indentation it can be read too. As the why, I don't have your answer, maybe the OP can answer that one.
Can someone explain to me how and why OP choose to omit the curly braces at the end of the for loop statement?