@Bert first&amp; second are exactly what I was looking for. Thanks.<br><br>@Thomas: I&#39;m not sure what you mean by fmap<br>What I wanted is to do this:<br>&gt; let f = map $ first (*2)<br>&gt; f [(1,1),(2,2),(3,3),(4,4)]<br>
[(2,1),(4,2),(6,3),(8,4)]<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 9:23 PM, Thomas Davie <span dir="ltr">&lt;<a href="mailto:tom.davie@gmail.com">tom.davie@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">first ofc also being known as fmap.<div><br></div><div>Bob<br><div>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div>
<span style="font-family:Arial"><pre>if (*ra4 != 0xffc78948) { return false; }</pre></span></div></span>
</div><div><div></div><div class="h5">
<br><div><div>On 9 Mar 2012, at 19:09, Brent Yorgey wrote:</div><br><blockquote type="cite"><div>On Fri, Mar 09, 2012 at 09:07:24PM +0200, Ovidiu Deac wrote:<br><blockquote type="cite">Does anybody know if there are any functions like these in the Haskell<br>
</blockquote><blockquote type="cite">libray?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">updateSnd f (x,y) -&gt; (x, f y)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">
updateFst f (x,y) -&gt; (f x, y)<br></blockquote><br>Yes: &#39;first&#39; and &#39;second&#39; from Control.Arrow.<br><br>-Brent<br><br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>

Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br>