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.
Looks very good but it isn't very efficient I think. So, I don't think it should be considered a best practice code.
I was looking for a solution that looks like mine. Found it.
Clever and succinct solution
This is an approach I'd like to see in production, because you're defining the variables in a way that is accessible throughout the program, and it's easy to maintain.
This comment is hidden because it contains spoiler information about the solution
Not intentional. At the time it seemed like a good name for a variable. I didn't realize I was choosing the function name. I will submit an edited solution. Thank you for catching that.
Why are you shadowing the persistence function variable name?