1.3.0 permalink Arrow_down_16x16
  • (name x)
Returns the name String of a string, symbol or keyword.

1 Example top

  • user=> (name :x)
    "x"
    user=> (name "x")
    "x"
    user=> (name 'x)
    "x"
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:1482 top

(defn name
  "Returns the name String of a string, symbol or keyword."
  {:tag String
   :added "1.0"
   :static true}
  [x]
  (if (string? x) x (. ^clojure.lang.Named x (getName))))
Vars in clojure.core/name:
Used in 0 other vars

Comments top

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