1.3.0 permalink Arrow_down_16x16
  • (atom? x)

1 Example top

  • ;; atom? returns true if the form passed does not 
    ;; implement IPersistentCollection. The atom referred 
    ;; here is not the atom used in managing mutable state  
    
    user=> (use `[clojure.inspector :include (atom?)])
    
    user=> (atom? 1)
    true
    
    user=> (atom? \a)
    true
    
    user=> (atom? "hello world")
    true
    
    user=> (atom? :keyword)
    true
    
    user=> (atom? nil)
    true
    
    user=> (atom? '())
    false
    
    user=> (atom? [1, 3, 5])
    false
    
    user=> (atom? #{\a \e \i \o \u})
    false
    
    user=> (atom? {:x 16 :y 25})
    false
Log in to add / edit an example.

See Also top

  • 0
    clojure.core/isa?

    Returns true if (= child parent), or child is directly or indirectly

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/inspector.clj:19 top

(defn atom? [x]
  (not (coll? x)))
Vars in clojure.inspector/atom?:
Used in 0 other vars

Comments top

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