Returns a sorted seq of symbols naming public vars in
a namespace
user=> (require 'clojure.repl 'clojure.string) user=> (pprint (clojure.repl/dir-fn 'clojure.string)) (blank? capitalize escape join lower-case replace replace-first reverse split split-lines trim trim-newline triml trimr upper-case) nil
(defn dir-fn "Returns a sorted seq of symbols naming public vars in a namespace" [ns] (sort (map first (ns-publics (the-ns ns)))))
Comments top
No comments for dir-fn. Log in to add a comment.