[Haskell-beginners] Points-free style

Ozgur Akgun ozgurakgun at gmail.com
Sun Jun 5 18:09:21 CEST 2011


On 5 June 2011 16:40, Daniel Fischer <daniel.is.fischer at googlemail.com>wrote:

> \a b c d e f g h -> foo (bar a b) (baz c d e) f (quux g h)


Just for the fun of it:

$ pointfree "\a b c d e f g h -> foo (bar a b) (baz c d e) f (quux g h)"
flip flip quux . ((flip . ((flip . ((flip . ((flip . (((.) . (.)) .)) .))
.)) .)) .) . flip flip baz . (((.) . (.) . (.) . foo) .) . bar

using: http://hackage.haskell.org/package/pointfree

Cheers,
Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110605/fa5e87d7/attachment-0001.htm>


More information about the Beginners mailing list