store/[org.clojure/clojure "1.8.0"] clj::clojure.core/char-array

Official Documentation

Add notes
Arities
==================================================
   [size-or-seq]
   [size init-val-or-seq]

Docstring
==================================================
  Creates an array of chars

Source

(defn char-array
  "Creates an array of chars"
  {:inline (fn [& args] `(. clojure.lang.Numbers char_array ~@args))
   :inline-arities #{1 2}
   :added "1.1"}
  ([size-or-seq] (. clojure.lang.Numbers char_array size-or-seq))
  ([size init-val-or-seq] (. clojure.lang.Numbers char_array size init-val-or-seq)))

Example 1

Edit
(char-array "asdf")
;; => #<char[] [C@167fc18>

(seq (char-array "asdf"))
;; => (\a \s \d \f)

(seq (char-array 10))
;; => (\^@ \^@ \^@ \^@ \^@ \^@ \^@ \^@ \^@ \^@)

Uses on crossclj