(def d1 (+ 8 2)) ; d1 is 10
(def d2 (- 8 2)) ; d2 is 6
(def d3 (* 8 2)) ; d3 is 16
(def d4 (/ 8 2)) ; d4 is 4
;; / on integers gives an exact ratio, not a truncated integer
(def d5 (/ 5 2)) ; d5 is 5/2
(def d6 (quot 5 2)) ; d6 is 2
;; rem keeps the sign of the dividend, mod the sign of the divisor
(def d7 (rem -5 2)) ; d7 is -1
(def d8 (mod -5 2)) ; d8 is 1
;; there are no ++ and += in Clojure: a value is never changed in place
(def d9 (inc 1)) ; d9 is 2
(def d10 (dec 1)) ; d10 is 0
(prn d1 d2 d3 d4 d5 d6 d7 d8 d9 d10)