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.
To explain, what's cool about this is that .asSequence() causes the onEach() and filter{} to be applied lazily for every element at the same time, so it goes:
onEach
filter
onEach
filter
etc.
The prettiest solution so far!
I like this solution, is elegant and also easy to understand