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

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -