2 ms·
See, iterators [edit: and “yield” in general] feel Haskelly to me. Then again I can only understand key Haskell concepts when they’re explained using any of se
by vundercind 2y ago
See, iterators [edit: and “yield” in general] feel Haskelly to me.
Then again I can only understand key Haskell concepts when they’re explained using any of several other languages (then they’re typically very easy to understand) so maybe I’m not the best judge of what is or is not Haskell-like.
- remexre 2y agoKinda funny, given that the Haskell iterator solution is "convert your data to be a list, and the optimizer and RTS will do the right thing as if it were an iterator."