[Haskell-cafe] flip1 through flip9, useful?

Tony Morris tonymorris at gmail.com
Wed Jan 15 10:48:51 UTC 2014


Indeed! I offered the question as a coaching exercise :)

On 15/01/14 19:56, Tom Ellis wrote:
> 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
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


-- 
Tony Morris
http://tmorris.net/



More information about the Haskell-Cafe mailing list