Created
November 16, 2017 14:57
-
-
Save tmountain/9eb9618792f1a61ed363d37758952185 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(ns ycomb.core | |
(:gen-class)) | |
(def almost-factorial | |
(fn [f] | |
(fn [n] | |
(if (= n 0) | |
1 | |
(* n (f (- n 1))))))) | |
(declare fac-a) | |
(def fac-a (almost-factorial fac-a)) | |
(fac-a 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment