OnlineWoerterBuecher.de
Internes

Lexikon


fix


1. The fixed point combinator. Called Y in combinatory logic. Fix is a higher-order function which returns a fixed point of its argument (which is a function). fix :: (a -> a) -> a fix f = f (fix f) Which satisfies the equation fix f = x such that f x = x. Somewhat surprisingly, fix can be defined as the non-recursive lambda abstraction: fix = h . ( x . h (x x)) ( x . h (x x)) Since this involves self-application, it has an {infinite type}. A function defined by f x1 .. xN = E can be expressed as f = fix ( f . x1 ... xN . E) = ( f . x1 ... xN . E) (fix ( f . x1 ... xN . E)) = let f = (fix ( f . x1 ... xN . E)) in x1 ... xN . E If f does not occur free in E (i.e. it is not recursive) then this reduces to simply f = x1 ... xN . E In the case where N = 0 and f is free in E, this defines an infinite data object, e.g. ones = fix ( ones . 1 : ones) = ( ones . 1 : ones) (fix ( ones . 1 : ones)) = 1 : (fix ( ones . 1 : ones)) = 1 : 1 : ... Fix f is also sometimes written as mu f where mu is the Greek letter or alternatively, if f = x . E, written as mu x . E. Compare quine. [Jargon File] (1995-04-13) 2. bug fix. (1998-06-25)

In addition suitable contents:
[ 2 ] [ = ] [ abstraction ] [ al ] [ alt ] [ am ] [ an ] [ app ] [ application ] [ ar ] [ arc ] [ arg ] [ argument ] [ as ] [ at ] [ b ] [ bd ] [ be ] [ bi ] [ bj ] [ bs ] [ bug fix ] [ by ] [ C ] [ ca ] [ case ] [ cat ] [ cc ] [ ch ] [ co ] [ com ] [ combinator ] [ combinatory logic ] [ cu ] [ data ] [ de ] [ do ] [ du ] [ E ] [ ec ] [ ed ] [ edu ] [ ee ] [ er ] [ es ] [ et ] [ fi ] [ file ] [ finite ] [ fixed point ] [ fr ] [ free ] [ function ] [ G ] [ gh ] [ gi ] [ gl ] [ gu ] [ h ] [ hat ] [ higher-order function ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ inc ] [ infinite ] [ int ] [ io ] [ is ] [ it ] [ J ] [ Jargon File ] [ la ] [ lambda abstraction ] [ Lex ] [ li ] [ ls ] [ lt ] [ lv ] [ ly ] [ ma ] [ mo ] [ mod ] [ module ] [ mp ] [ mu ] [ N ] [ na ] [ nc ] [ ne ] [ nf ] [ ng ] [ ni ] [ no ] [ ns ] [ object ] [ om ] [ pa ] [ pe ] [ ph ] [ pl ] [ ply ] [ point ] [ pr ] [ query ] [ quine ] [ rc ] [ re ] [ recursive ] [ S ] [ sa ] [ se ] [ si ] [ so ] [ st ] [ su ] [ T ] [ th ] [ to ] [ tr ] [ tt ] [ type ] [ ua ] [ ug ] [ um ] [ ve ] [ Y ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (5088 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.1028 Seconds, with 17 Database-Queries
Zurück zur Startseite