
29-05-2004, 11:03
|
 |
 |
Why did I come back?
AKA: Jamie Bliss
 FRC #4967 (That ONE Team)
Team Role: Mentor
|
|
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
|
|
|
Re: Found Really Cool Windows text Editor
Quote:
|
Originally Posted by mtrawls
... did you have to bad mouth Lisp? Once you get your eyes fixed after looking at a program or two, it ain't all that bad ... actually, it can be quite powerful. I especially like Scheme (a dialect of Common Lisp). Hrm ... how odd that I put that in parentheses, no?
Afterall, who can resist tail-end recursion and the ability to say cadr, caaddr, etc. as freely as one pleases?
Code:
(define (factorial n)
(define (iterate n acc)
(if (<= n 1)
acc
(iterate (- n 1) (* acc n))))
(iterate n 1))
|
English? or at least C?
|