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 think using properties of the object (result-array) is much more obvious and understandable by other developers. There is no risk of changes of the length after creating the array (and if it would change you wouldn't have the threat of missing it), where 'n' could be used for something else in between the array creation and the population of the array.