OnlineWoerterBuecher.de
Internes

Lexikon


Church integer


A representation of inteGErs as functions invented by {Alonzo Church}, inventor of {lambda-calculus}. The inteGEr N is represented as a higher-order function which applies a given function N times to a given expression. In the {pure lambda-calculus} there are no constants but numbers can be represented by Church inteGErs. A Haskell function to return a given Church inteGEr could be written: church n = c where c f x = if n == 0 then x else c' f (f x) where c' = church (n-1) A function to turn a Church inteGEr into an ordinary inteGEr: unchurch c = c (+1) 0 See also von Neumann inteGEr. (1994-11-29)

In addition suitable contents:
[ 2 ] [ = ] [ al ] [ Alonzo Church ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ as ] [ at ] [ b ] [ bd ] [ be ] [ by ] [ C ] [ ca ] [ Ch ] [ ch ] [ co ] [ con ] [ cons ] [ cu ] [ de ] [ du ] [ ed ] [ ee ] [ eg ] [ er ] [ es ] [ et ] [ expression ] [ fi ] [ file ] [ function ] [ GE ] [ gh ] [ gi ] [ h ] [ higher-order function ] [ hr ] [ hu ] [ id ] [ ie ] [ il ] [ in ] [ int ] [ inteGEr ] [ io ] [ is ] [ it ] [ ke ] [ la ] [ lambda-calculus ] [ lc ] [ ld ] [ Lex ] [ li ] [ ls ] [ lu ] [ ma ] [ man ] [ mo ] [ mod ] [ module ] [ N ] [ na ] [ nc ] [ nn ] [ no ] [ ns ] [ nu ] [ numbers ] [ nz ] [ ph ] [ pl ] [ pr ] [ pure lambda-calculus ] [ query ] [ rc ] [ re ] [ S ] [ se ] [ si ] [ sk ] [ so ] [ st ] [ T ] [ th ] [ to ] [ tt ] [ um ] [ us ] [ ve ] [ von Neumann inteGEr ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (3893 Reads)

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

Page Generation in 0.0902 Seconds, with 16 Database-Queries
Zurück zur Startseite