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.
This is really good solution. I love it and have a deep understanding about a function's return value also being a function.
Haha, yes, it takes some time to get used to that way of thinking which is employed in functional programming. Especially when you are coming from a mostly procedural language like C or C++. Although I must say that C++ has adopted more and more of the functional stuff in recent standard revisions (and thus has become more Pythonic): it always had the "algoritm" and "functional" library headers but with the advent of C++11 lambdas and C++20 ranges, things have become much more advanced.
This comment is hidden because it contains spoiler information about the solution
this solution makes mine look like it was written by an actual lunatic
im such a hack when it comes to fp
Nice, never though of this. This was one extra step to making it much neater by adding the default function identity().
Wow, this really is the most elegant solution.. It should be the top one in my opinion.