<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Had you considered list comprehension?<BR>
&nbsp;<BR>
[x | x &lt;- xs, x&nbsp;&lt;&nbsp;0.5 &amp;&amp; x&nbsp;&gt; -0.5]<BR><BR>
Luca.<BR>
&nbsp;<BR>
&nbsp;<BR>&gt; Date: Mon, 19 Oct 2009 01:49:17 -0700<BR>&gt; From: mpm@alumni.caltech.edu<BR>&gt; To: beginners@haskell.org<BR>&gt; Subject: [Haskell-beginners] \x -&gt; x &lt; 0.5 &amp;&amp; x &gt; -0.5<BR>&gt; <BR>&gt; Is there a nifty way to write<BR>&gt; <BR>&gt; filter (\x -&gt; x &lt; 0.5 &amp;&amp; x &gt; -0.5) xs<BR>&gt; <BR>&gt; without explicitly using x?<BR>&gt; <BR>&gt; Maybe arrows? I have a vague understanding that arrows can "send" an <BR>&gt; argument to more than one computation.<BR>&gt; <BR>&gt; -Mike<BR>&gt; _______________________________________________<BR>&gt; Beginners mailing list<BR>&gt; Beginners@haskell.org<BR>&gt; http://www.haskell.org/mailman/listinfo/beginners<BR>                                               <br /><hr />Use Windows Live Messenger for free on selected mobiles. <a href='http://clk.atdmt.com/UKM/go/174426567/direct/01/' target='_new'>Learn more.</a></body>
</html>