Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell

Name: Anonymous 2009-10-05 12:37

How the fuck do you write a pointless concatMapM?

Name: Anonymous 2009-10-05 12:57

No seriously guys.

concatMapM f xs = do
    xs'
<- mapM f xs
    return $ concat xs'

works fine,

liftM concat . mapM
and
((return . concat) =<<) . mapM
give me a wierd type signature: (Monad ((->) [a])) => (a -> [b]) -> [a] -> [b]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List