## Church integer

<*theory*>

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) 0See also von Neumann integer.

Last updated: 1994-11-29

### Nearby terms:

Church, Alonzo ♦ **Church integer** ♦ Church of the SubGenius ♦ Church-Rosser Theorem

Try this search on Wikipedia, OneLook, Google

Loading