Clojure Simple Values
The simple values of Clojure are as follows,
Strings
putting quotes around text.
"hello world"
;; -> "hello world"
Integers
Numeric value[s] as following
47
;; -> 47
Ratios
Representation of values which won’t turn into decimals when evaluated.
1/9
;; -> 1/9
Decimals
3.14
;; -> 3.14
Keywords
Symbolic identifiers and starts with a colon.
:nice
;; -> :nice
Characters
preceding with backslash creates characters.
\j
;; -> \j
Booleans
true
;; -> true
false
;; -> false
;; absense of value
nil
;; -> nil