Re:Why Haskell?
by itishappy on Thursday September 12, 2024 @03:38PM
(#41524668)
Generators require a __next__ method, yield statement, or generator comprehension. What you've got is lambdas and a list comprehension. Rewriting using generators would look something like:
It's nicer in a way, certainly closer to the pipe syntax the commenter your replying to is looking for, but kind of janky to have to name all the intermediate steps.
[ Parent
| on HN ]
There are no comments on this comment yet.