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

refer-clojure

clojure.core

  • (refer-clojure & filters)
Same as (refer 'clojure.core )

1 Example top

  • ;; Prevent namespace conflicts like:
    
    ;; `WARNING: time already refers to: #'clojure.core/time in namespace: 
    ;; time, being replaced by: #'time/time`
    
    user=> (ns time
             (:refer-clojure :exclude [time]))
    
    (defn time []
      (System/nanoTime))
    
Log in to add / edit an example.

See Also top

  • 0
    clojure.core/refer

    refers to all public vars of ns, subject to filters. filters can in

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:4647 top

(defmacro refer-clojure
  "Same as (refer 'clojure.core )"
  {:added "1.0"}
  [& filters]
  `(clojure.core/refer '~'clojure.core ~@filters))
Vars in clojure.core/refer-clojure: defmacro concat list refer seq
Used in 1 other vars with-temp-ns

Comments top

No comments for refer-clojure. Log in to add a comment.