List comprehensions: Difference between revisions

m
→‎{{header|Haskell}}: (>>=) is flip concatMap
m (→‎{{header|Haskell}}: (>>=) is flip concatMap)
Line 849:
False -> empty</lang>
 
which can be further specialised (given the particular context of the list monad, in which (>>=) is flip concatMap, pure is flip (:) [], and empty is []) to:
 
<lang haskell>pyth :: Int -> [(Int, Int, Int)]
9,659

edits