1.3.0 permalink Arrow_down_16x16

char?

clojure.core

  • (char? x)
Return true if x is a Character

1 Example top

  • user=> (char? \a)
    true
    
    user=> (char? 22)
    false
    
    user=> (char? "a")
    false
    
    user=> (char? (first "abc"))
    true
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:149 top

(def
 ^{:arglists '([x])
   :doc "Return true if x is a Character"
   :added "1.0"
   :static true}
 char? (fn ^:static char? [x] (instance? Character x)))
Vars in clojure.core/char?:
Used in 0 other vars

Comments top

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