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

Official Documentation

Add notes
Arities
==================================================
   [x]

Docstring
==================================================
  Coerce to char

Source

(defn char
  "Coerce to char"
  {:inline (fn  [x] `(. clojure.lang.RT (~(if *unchecked-math* 'uncheckedCharCast 'charCast) ~x)))
   :added "1.1"}
  [x] (. clojure.lang.RT (charCast x)))

Example 1

Edit
;; can coerce an int (or similar)
(char 97)
;; => \a

;; a byte can be coerced to a char
(let [bytes-array (.getBytes "abc")]
  (char (first bytes-array)))
;; => \a

;; char is just a function
(map char [65 66 67 68])
;; => (\A \B \C \D)

Uses on crossclj