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

Bas van Dijk v.dijk.bas at gmail.com
Tue Oct 20 06:01:58 EDT 2009


On Tue, Oct 20, 2009 at 5:28 AM, Daniel Fischer
<daniel.is.fischer at web.de> wrote:
> May I offer
>
> (&&) <$> (< 0.5) <*> (> -0.5)

or:

import Control.Applicative.Infix

between l h = (> l) <^ (&&) ^> (< h)

Bas

You can find Control.Applicative.Infix in InfixApplicative:
http://hackage.haskell.org/package/InfixApplicative


More information about the Beginners mailing list