clojure-version

clojure.core

  • (clojure-version)
Returns clojure version as a printable string.

1 Example top

  • user=> (clojure-version)
    "1.2.0-master-SNAPSHOT"
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:6161 top

(defn
  clojure-version 
  "Returns clojure version as a printable string."
  {:added "1.0"}
  []
  (str (:major *clojure-version*)
       "."
       (:minor *clojure-version*)
       (when-let [i (:incremental *clojure-version*)]
         (str "." i))
       (when-let [q (:qualifier *clojure-version*)]
         (when (pos? (count q)) (str "-" q)))
       (when (:interim *clojure-version*)
         "-SNAPSHOT")))
Vars in clojure.core/clojure-version:
Used in 0 other vars

Comments top

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