
23 Oct
2009
23 Oct
'09
10:25 a.m.
filter ((<=0.5) . abs) xs
On Mon, Oct 19, 2009 at 10:49 AM, Michael Mossey
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 _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners