You're viewing version 1.2.0 of set?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (set? x)
Returns true if x implements IPersistentSet

1 Example top

  • user> (set? #{1 2 3})
    true
    
    user> (set? [1 2 3])
    false
    
    user> (set? {:a 1 :b 2})
    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:4978 top

(defn set?
  "Returns true if x implements IPersistentSet"
  {:added "1.0"}
  [x] (instance? clojure.lang.IPersistentSet x))
Vars in clojure.core/set?: defn instance?
Used in 2 other vars walk tree-map

Comments top

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