You're viewing version 1.2.0 of keyword?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

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:471 top

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

Comments top

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