Add flipped fmap

Felipe Lessa felipe.lessa at gmail.com
Wed Apr 7 09:09:17 EDT 2010


On Wed, Apr 07, 2010 at 11:13:02AM +0200, Bas van Dijk wrote:
> I would like to propose adding a flipped variant of <$> to Data.Functor:
>
> (<$$>) ∷ Functor f ⇒ f α → (α → β) → f β
> (<$$>) = flip (<$>)

+1

I've needed <$$> many times and had to use 'flip fmap' instead.

--
Felipe.


More information about the Libraries mailing list