<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 14, 2014 at 3:30 PM, Christian Marie <span dir="ltr"><<a href="mailto:christian@ponies.io" target="_blank">christian@ponies.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jan 14, 2014 at 04:57:14PM +1000, Tony Morris wrote:<br>
>    Why not generalise to any functor?<br>
>    let flip f a = fmap ($a) f<br>
<br>
</div>I didn't think of that, I suppose.<br>
<br>
Now that I do, it seems to be a tradeoff between (arguably) less immediately<br>
obvious type signatures and something.<br>
<br>
I can't actually think of what that something is yet. Can you think of a real<br>
world use for a functor flip where normal flip wouldn't do?<br></blockquote><div><br></div><div>I know I've written "fmap ($a) f" in the past, so I guess any of those would be a use case for a functor flip.  On the other hand, it's only a few characters longer than flip, and arguably more clear, so I'm not convinced that generalizing flip is useful.  YMMV.</div>
</div></div></div>