September 22, 1999 Perl and the Lambda Calculus Slide #26

Number Example

        ZERO =          (PAIR TRUE TRUE)
        SUCC =          n.(PAIR FALSE n)
        IS_ZERO =       n.(FIRST n)
        PRED =          n.(SECOND n)


Next Copyright © 1999 M-J. Dominus