You're viewing version 1.2.0 of dir-fn. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

dir-fn

clojure.repl

  • (dir-fn ns)
Returns a sorted seq of symbols naming public vars in
a namespace

1 Example top

  • 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
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/repl.clj:64 top

(defn dir-fn
  "Returns a sorted seq of symbols naming public vars in
  a namespace"
  [ns]
  (sort (map first (ns-publics (the-ns ns)))))
Vars in clojure.repl/dir-fn: defn first map ns ns-publics sort the-ns
Used in 0 other vars

Comments top

No comments for dir-fn. Log in to add a comment.