scsh-0.6/scheme/vm/bug.scm

13 lines
322 B
Scheme
Raw Normal View History

2003-05-01 06:21:33 -04:00
; Copyright (c) 1993-1999 by Richard Kelsey and Jonathan Rees. See file COPYING.
(define (church n)
(let loop ((application 'x) (n n))
(if (zero? n)
`(lambda (f) (lambda (x) ,application))
(loop `(f ,application) (- n 1)))))
(define c10000 (church 10000))
(define (f)
(eval c10000 (interaction-environment)))