Re:The list monad in Perl and Python
by rogerallen on Tuesday August 04, 2015 @11:37AM
(#10004087)
Thanks for explaining and thanks for the post. It was helpful seeing an example of why you might want to use a monad.
In the Python code I think this is built into the behavior of the `+=` operator.
In the Perl code it's part of the way the `map` call works; it combines what would be `concat . map` in Haskell.