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.
About Haskell, I'm a noob too. I was hinting at the documentation eg. zipWith.
That's the neat part : nowhere. (Well kinda, but no spoil).
Finally about
join
: the order doesn't matter because it is not tested, but the tests still need to access some elements so they have to be at a reasonable position (something exponential would not be reasonable).Ps : does your version of
join
really go through all elements ? If that's not the case then the tests may take elements forever.join
, you just need to have every element of the « 2D stream » in the output « 1D stream ». Trying to exhaust the first stream, then the second, etc … will not work because they are, well, infinite.tail
andjoin
, can (and should) be really lazy. After all it’s a’a L.t
(or aStream
of it), so no evaluation is needed right now.tie
specificaly, it’s hard to wrap your head around how it works - at least that’s my experience. So sorry I can’t help.I’ll try to answer some of your points without revealing too much of the solution. (Just in case I’ll split the answer so a spoiler flag will not hide everything).