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.
You can initialize the hash as char_repeats = Hash.new(0) so you don't have to the ternary conditional to check if it's initialized (it'll be initialized with the default value of 0). Cheers!
Can anyone explain how this works? I know what a partial function is (basically prefilling some of the args), but how is it used here?
What is an argument for using the partial syntax instead of simply reduce?