« Another DSL embedded in Haskell - a partial make replacement in less than 10 lines | Main | Financial vs Real investment »

September 09, 2007


wren ng thornton

You can use liftM (from Control.Monad) and mapM to simplify things.

mapM f xs == sequence (map f xs)
liftM f mx == mx >>= return . f

The comments to this entry are closed.


Tip Jar

  • Amazon Honor System Click Here to Pay Learn More
Blog powered by Typepad

Twitter Updates

    follow me on Twitter