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.
Because the chars in
text
should be assigned to, otherwise a copy would be assigned to.In fact it is creating reference to char instead of deep copy of char. But considering char is small (1 byte guaranteed) it does not have any benefit here. And how guy bellow mentioned because I want to modify the string.
The function returns a function not void
The solution is returning a lambda expression which is the shortcut version for writing a function
It's similiar to
foreach (int i in idxs)