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 bad code! This is madness!!
Madness..? THIS..! IS..! insert-troll-face-here
couldn't agree more, i'm sick of people voting best practice just random stuff, the voting mechanism should be changed
Don't. The code should be not only as concice as possible, it should be readable and obvious. Your solution is better.
I second this.
People should stop voting random stuff as best practice just becouse the code is short and nice. There's the 'clever' button for that.
Best practice is something else.
i don't see any reason to use built in funcions in these kind of exercises, i believe those are meant to practice, to understand how things work, taking these shortcuts doens't teach anything
viewing solutions is depressing....
This comment is hidden because it contains spoiler information about the solution