1.3.0 permalink Arrow_down_16x16

string?

clojure.core

  • (string? x)
Return true if x is a String

1 Example top

  • user=> (string? \a)
    false
    
    user=> (string? "abc")
    true
    
    user=> (string? 1)
    false
    
    user=> (string? ["a" "b" "c"])
    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:156 top

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

Comments top

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