[Haskell-beginners] Re: \x -> x < 0.5 && x > -0.5
Christian.Maeder at dfki.de
Mon Oct 19 06:07:19 EDT 2009
Michael Mossey schrieb:
> Is there a nifty way to write
> filter (\x -> x < 0.5 && x > -0.5) xs
> without explicitly using x?
Hoogle did not find a function of type:
(b -> b -> b) -> (a -> b) -> (a -> b) -> a -> b
or (b -> c -> d) -> (a -> b) -> (a -> c) -> a -> d
But maybe such a function is worth being added to Data.Function.
More information about the Beginners