List comprehensions: Difference between revisions
→{{header|Haskell}}: Removed redundant brackets
(→{{header|Haskell}}: Used mzero rather than [] in immediate desugaring) |
(→{{header|Haskell}}: Removed redundant brackets) |
||
Line 840:
pyth n =
[1 .. n] >>=
which can be further specialised (given the particular context of the list monad, in which >>= is concatMap) to:
|