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.
No you aren't. For one, there is no global variable to modify because result is initialized and mutated inside of the function. Second, strings are immutable. This isn't modifying the string, its appending to a non-related list at specific slices of the string. . It is imperative code though, if that is what you meant. This can be written functionally but in this case, the imperative definitely seems more readable.