Skip to content

Instantly share code, notes, and snippets.

@ScatteredRay
Created February 8, 2011 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScatteredRay/816134 to your computer and use it in GitHub Desktop.
Save ScatteredRay/816134 to your computer and use it in GitHub Desktop.
clojure macro
(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