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 like it.
Although it is said there will be no empty array in instruction, for general use cases If the array is empty, this will panic compiler.
Thank you for the answer!
It's dereferencing the result of .unwrap()
This comment is hidden because it contains spoiler information about the solution
I understand how it gets the index in string, where is really a second 'c', but how it returns -1 in other cases?
Noooo! I can't believe
Compiler told me to dereference 'arr' by adding the *. Don't understand why yet...