Created
May 21, 2012 10:23
-
-
Save codeck/2761692 to your computer and use it in GitHub Desktop.
factorial() lambda recursive version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(funcall | |
(lambda (fn n) | |
(funcall fn n fn)) | |
(lambda (n this) | |
(cond ((> n 0) | |
(* n (funcall this (- n 1) this))) | |
(t 1))) | |
10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment