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.
Your solution looks very interesting. Could you explain how it works?
WTF? How does that even work?
Gz on the clean solution, btw
Thank you!
So it is an inline conditional... here is an article explaining it better than I could.. :)
https://www.natashatherobot.com/ruby-shorthands-if-then-else/
I'm a total noob at this. Would someone please tell me how this works? I've tried googling colon and questionmark, but I haven't found a satisfactory explanation.
Aah that's clever. I have one question though:
So if a condition is not met the first time a ternary statement is
called, and there's recurssion on the false side, would it ever go
through the true side again? (i.e. would it just keep going back to
the recursive point, which is the false side in this case?).
This comment is hidden because it contains spoiler information about the solution