[Haskell-beginners] Pointfree style

Bas van Gijzel nenekotan at gmail.com
Tue Nov 11 06:40:19 EST 2008


Hi,

I'm trying to understand pointfree style better, but it's not coming along
as well as I'd like it to.
The thing I can't get to work is to reduce an argument that is used more
than once in a function.

My function looks like this now (which works like it should):
f x = g ((h . i) x) x

But I'd like to reduce the last argument x. I've looked at the wiki[1] but I
couldn't find a systematic way to obtain pointfree functions when they get
more complicated.
Any pointers to pages or papers with more examples of obtaining pointfree
functions are appreciated.

Thanks,

Bas van Gijzel


[1]http://www.haskell.org/haskellwiki/Pointfree
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20081111/444ea4fd/attachment.htm


More information about the Beginners mailing list