<div dir="ltr">I am also -1 on adding it to Data.Functor despite having written it for lens.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 3:41 AM, Andreas Abel <span dir="ltr"><<a href="mailto:abela@chalmers.se" target="_blank">abela@chalmers.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am a -1 on both proposals, i.e., on having a special map for the "apply to a fixed argument" case.<div class="">
<br>
<br>
On 16.02.2014 21:42, Nikita Volkov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, since the variable input of this combinator seems to be on the<br>
functor side I suggest to inverse the arguments order order, i.e.:<br>
<br>
     mapf :: a -> f (a -> b) -> f b<br>
<br>
This way it'll target composition. And since it's a combinator over<br>
functions it's a pretty important thing. E.g.:<br>
     mapf 2 . map (*) $ [1..10]<br>
</blockquote>
<br></div>
I'd simply write<br>
<br>
  map (2 *) [1..10]<br>
<br>
Cheers,<br>
Andreas<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Andreas Abel  <><      Du bist der geliebte Mensch.<br>
<br>
Depeartment of Computer Science and Engineering<br>
Chalmers and Gothenburg University, Sweden<br>
<br>
<a href="mailto:andreas.abel@gu.se" target="_blank">andreas.abel@gu.se</a><br>
<a href="http://www2.tcs.ifi.lmu.de/~abel/" target="_blank">http://www2.tcs.ifi.lmu.de/~<u></u>abel/</a><br>
______________________________<u></u>_________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/libraries</a><br>
</font></span></blockquote></div><br></div>