Difference between revisions of "Eta conversion"

From HaskellWiki
Jump to: navigation, search
(link to recent thread in Haskell-Cafe)
(Deleting page that hasn't been edited for over 10 years)
Line 1: Line 1:
{{Foundations infobox}}
An ''eta conversion'' (also written ''&eta;-conversion'') is adding or dropping of abstraction over a function.  For example, the following two values are equivalent under &eta;-conversion: <haskell>\x -> abs x
</haskell>and <haskell>abs</haskell>
Converting from the first to the second would constitute an eta ''reduction'', and moving from the second to the first would be an eta ''abstraction''. The term 'eta conversion' can refer to the process in either direction.
Extensive use of &eta;-reduction can lead to [[Pointfree]] programming. It is also typically used in certain compile-time optimisations.
== See also ==
* Haskell-Cafe on [http://www.haskell.org/pipermail/haskell-cafe/2010-December/087782.html What's the motivation for η rules?]

Revision as of 11:40, 6 February 2021