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.
I can't answer your actual question but I can give oyu this info that I looked up on the performance of terrinary operators comapred to if statements. Terniary is better preformance wise than if statements. I think that is also a generall assumption we make when learning about terrinary operators. However I never actually understood the technical reason why. Here it is based off my google search: An if / else statement emphasises the branching first and what's to be done is secondary, while a ternary operator emphasises what's to be done over the selection of the values to do it with.