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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to