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

Stephen Tetley stephen.tetley at gmail.com
Tue Oct 20 11:29:43 EDT 2009


Christian Maeder wrote:

> 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.

Hello Christian

This is the big Phi or S' combinator. I would certainly second its
addition to Data.Function.

sprime p q r s = p (q s) (r s)

Best wishes

Stephen


More information about the Beginners mailing list