<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>
<BR>
[x | x <- xs, x < 0.5 && x > -0.5]<BR><BR>
Luca.<BR>
<BR>
<BR>> Date: Mon, 19 Oct 2009 01:49:17 -0700<BR>> From: mpm@alumni.caltech.edu<BR>> To: beginners@haskell.org<BR>> Subject: [Haskell-beginners] \x -> x < 0.5 && x > -0.5<BR>> <BR>> Is there a nifty way to write<BR>> <BR>> filter (\x -> x < 0.5 && x > -0.5) xs<BR>> <BR>> without explicitly using x?<BR>> <BR>> Maybe arrows? I have a vague understanding that arrows can "send" an <BR>> argument to more than one computation.<BR>> <BR>> -Mike<BR>> _______________________________________________<BR>> Beginners mailing list<BR>> Beginners@haskell.org<BR>> 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>