[Haskell-cafe] Composition Operator

Malte Milatz malte at gmx-topmail.de
Sat Sep 22 07:09:40 EDT 2007


Peter Verswyvelen:
> Personally I also find the following a good explanation, since it does 
> not introduce lambdas or other scary things for newbies.
> 
> f . g = composite
>     where composite x = f (g x)
> 

I suppose that the usual definition, which is (f . g) x = f (g x), is
clear enough. No lambdas to be scared of here.


More information about the Haskell-Cafe mailing list