char

added
1.1

ns
clojure.core

type
function

(char x)

Coerce to char

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

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

;; char is just a function
user=> (map char [65 66 67 68])
(\\A \\B \\C \\D)
            
                (->> [67 108 111 106 117 114 101]
     (map char)
     (apply str))

"Clojure"