<br>   filter ((&lt;=0.5) . abs) xs<br><br><br><div class="gmail_quote">On Mon, Oct 19, 2009 at 10:49 AM, Michael Mossey <span dir="ltr">&lt;<a href="mailto:mpm@alumni.caltech.edu">mpm@alumni.caltech.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there a nifty way to write<br>
<br>
filter (\x -&gt; x &lt; 0.5 &amp;&amp; x &gt; -0.5) xs<br>
<br>
without explicitly using x?<br>
<br>
Maybe arrows? I have a vague understanding that arrows can &quot;send&quot; an argument to more than one computation.<br>
<br>
-Mike<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>
</blockquote></div><br>