1.3.0 permalink 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:5465 top

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

Comments top

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