News for hackers. Stuff that matters.
Re:Everyday hassles in Go by dllthomas on Sunday January 04, 2015 @03:31PM (#8835703)

    foo = [bar(x) for x in quux]
This is effectively a map, so it's strange to call it "using monads". "Using functors" would be more accurate.

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)]
seems equivalent to foo = quux >>= bar

There are no comments on this comment yet.