请输入您要查询的字词:

 

单词 ChurchInteger
释义

Church integer


A Church integer is a representation of integers as functions, invented by Alonzo Church. An integer N is represented as a higher-order function, which applies a given function to a given expression N times.

For example, in the programming language Haskell, a function that returns a particular Church integer might be

church0=fxx
churchn=c
where:cfx=cf(fx)
           where:c=church(n-1)

The transformation from a Church integer to an integer might be

unchurch n = n (+1) 0

Thus we can generate the integers–the (+1) function would be applied to an initial value of 0 n times, yielding the ordinary integer n.

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 11:36:56