/ Published in: Clojure

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/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))
Comments
