[Haskell-cafe] Working inside the fold

Stefan Holdermans stefan at cs.uu.nl
Fri Oct 7 05:19:27 EDT 2005


Greg,


> map_ :: (a -> b) -> (b -> c -> d) -> a -> c -> d
> map_ f g a b = g (f a) b


Please note that

   map_ = flip (.)

or, if you import Control.Arrow,

   map_ = (>>>)

Regards,

Stefan



More information about the Haskell-Cafe mailing list