[Haskell-cafe] flip1 through flip9, useful?

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Wed Jan 15 09:56:52 UTC 2014


On Tue, Jan 14, 2014 at 04:57:14PM +1000, Tony Morris wrote:
> Why not generalise to any functor?
> 
> let flip f a = fmap ($a) f

FYI, this is Control.Lens.??

    http://hackage.haskell.org/package/lens-3.9.2/docs/src/Control-Lens-Combinators.html#%3F%3F

Tom



More information about the Haskell-Cafe mailing list