[ prog / sol / mona ]
frontpage - thread list - new thread - preferences - ?
(define (inverse-factorial n) (letrec ((iter (lambda (i a) (cond ((> a n) (error "Not a factorial!")) ((= a n) (- i 1)) (else (iter (+ i 1) (* a i))))))) (iter 1 1)))
VIP:
bbs.scm + MIT Scheme + SICP + Satori Mode