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.
The time it takes to add two ~20 letter strings should not be an important consideration.
But good point for the list creation. It also looks cleaner without the brackets!
this is painfully unreadable
List creation and string concatenation is unnecessary computation in the function
Cool use of short circuiting
You shouldn't use default values which are mutable. Google why. Quick example: