[Haskell-cafe] Closures and pointfree functions
Lars Oppermann
loppermann at acm.org
Mon Sep 3 13:47:49 EDT 2007
Dear all,
In the Haskell Wiki at http://www.haskell.org/haskellwiki/Closure
there is an example for a function returning a closure given as
f x = (\y -> x + y)
Another way to achieve the same effect would be to write
f' x = (+) x
which to me as a beginner looks somewhat like pointfree style.
Would f' be considered to return a closure?
Bests,
Lars
More information about the Haskell-Cafe
mailing list