You're viewing version 1.2.0 of dir. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (dir nsname)
Prints a sorted directory of public vars in a namespace

1 Example top

  • user=> (require 'clojure.string 'clojure.repl)
    
    user=> (clojure.repl/dir clojure.string)
    blank?
    capitalize
    escape
    join
    lower-case
    replace
    replace-first
    reverse
    split
    split-lines
    trim
    trim-newline
    triml
    trimr
    upper-case
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:70 top

(defmacro dir
  "Prints a sorted directory of public vars in a namespace"
  [nsname]
  `(doseq [v# (dir-fn '~nsname)]
     (println v#)))
Vars in clojure.repl/dir: defmacro apply concat doseq list println seq vector
Used in 0 other vars

Comments top

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