haskell - Looking for mapAccumLM -


i'm looking way use mapaccuml in io monad - analog of mapm, i.e. type signature:

mapaccumlm :: (monad m) => (a -> b -> m(a, c)) -> -> [b] -> m(a, [c])

any easy way this?

this mapm on statet io:

mapaccumlm f xs = runstatet (mapm (statet . f) xs) 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -