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.
What beautifully obfuscated code! First it bulds up the list in the third element of the triple, going all the way from the very inside of the foldr structure to the very outside. At the outside, the 2nd element gets used as the return value of the top-level function. It gets evaluated with a definition of foldl hidden in the first element of the tuple passed to g on the last line, as well as in the 2nd element returned in the [] case. Still, implements foldl without using foldr - try doing it that way - it's trickier!