keyword?

clojure.core

  • (keyword? x)
Return true if x is a Keyword

1 Example top

  • user=> (keyword? x)
    false
    user=> (keyword? :x)
    true
    user=> (keyword? true)
    false
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:511 top

(defn keyword?
  "Return true if x is a Keyword"
  {:added "1.0"
   :static true}
  [x] (instance? clojure.lang.Keyword x))
Vars in clojure.core/keyword?:
Used in 0 other vars

Comments top

No comments for keyword?. Log in to add a comment.