[Haskell-cafe] Re: Point-free style

Henning Thielemann lemming at henning-thielemann.de
Thu Feb 10 15:19:44 EST 2005


On 10 Feb 2005, Peter Simons wrote:

> Now compare that to the following function, which does the
> some thing but without point-free notation:
>
>   incrEach' :: Integer -> [Integer] -> [Integer]
>   incrEach' i is = is >>= \i' -> return (i'+i)

point-free again

is >>= return . (i+)

:-]



More information about the Haskell-Cafe mailing list