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 comment is hidden because it contains spoiler information about the solution
I think you misunderstand the problem. The problem is that there is no a guaranteed order of execution of all of the times that the lambda expression is executed.
Not an issue -
int
is a value type, meaningp
is passed by value and not by reference. So you can mutate it all you like inside the method and it will not affect the original parameter from the caller's perspective.that is kind of "worst practices"