[Haskell-beginners] \x -> x < 0.5 && x > -0.5

Michael Mossey mpm at alumni.caltech.edu
Mon Oct 19 04:49:17 EDT 2009


Is there a nifty way to write

filter (\x -> x < 0.5 && x > -0.5) xs

without explicitly using x?

Maybe arrows? I have a vague understanding that arrows can "send" an 
argument to more than one computation.

-Mike


More information about the Beginners mailing list