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.
It is best practice because instead of implementing your own counting function, you use the standard library one
count_if
. I do agreed it is hard to read if you have no idea what you are looking at; perhaps comments would've made this easier to understandWhile it is clever, it is not the best practice if we're going to be adding more types of valid faces. Well, unless you plan on having a giant list of every combination of possible face!