[Haskell-cafe] Function composition

Henning Thielemann schlepptop at henning-thielemann.de
Mon Dec 29 07:41:53 EST 2008


Luke Palmer schrieb:
> 2008/12/26 Oscar Picasso <oscarpicasso at gmail.com
> <mailto:oscarpicasso at gmail.com>>
> 
>     Hi,
> 
>     I can write:
>     *Main> let yes = not . not
>     *Main> :t yes
>     yes :: Bool -> Bool
> 
>     But not:
>     *Main> let isNotEqual = not . (==)
> 
> 
> The definition of (.):
> 
> f . g = \x -> f (g x)

http://www.haskell.org/haskellwiki/Composing_functions_with_multiple_values


More information about the Haskell-Cafe mailing list