Return to Snippet

Revision: 22048
at December 29, 2009 16:16 by icqheretic


Initial Code
#!/usr/bin/env clj

; Define and load all the libraries into our namespace that we want all binds for:
(def *supported-libraries* ['clojure.core 'clojure.contrib.duck-streams 'clojure.contrib.seq-utils 'clojure.contrib.str-utils 'clojure.contrib.repl-utils])
(doseq [k *supported-libraries*] (use k))
          
          
(defn print-public-binds
  "Prints all binds defined in library $s."
  [s]
  (doseq [k (keys (ns-publics s))] (println k)))


(doseq [s *supported-libraries*] (print-public-binds s))

Initial URL


Initial Description


Initial Title
Print all binds in a lib

Initial Tags


Initial Language
Clojure