Created
February 8, 2011 08:54
-
-
Save ScatteredRay/816134 to your computer and use it in GitHub Desktop.
clojure macro
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
(def L '()) | |
(defn add-fun [i] | |
(def L (cons i L)) | |
(defn fn1 [] ...) | |
(add-item fn1) | |
(defn fn2 [] ...) | |
(add-item fn2) | |
;; Seperate File | |
(defn ofn1 [] ...) | |
(add-item ofn1) | |
.... | |
;; Some other place | |
(defn called-somewhere [] | |
(do-stuff-with L)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment