Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Everyday hassles in Go. Parent comment
foo = [bar(x) for x in quux]
You can get "monad" out of list comprehensions though, when you have multiple "for" clauses.
foo = [y for x in quux for y in bar(x)]
There are no comments on this comment yet.
You can get "monad" out of list comprehensions though, when you have multiple "for" clauses.
seems equivalent to foo = quux >>= bar