Files
  • main.clj
  • target
main.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(def measurement "cpu")

;; conj working on lists
(conj '() measurement)

(conj '("host=\"serverA\"" "region=\"us_west\"") measurement)

(clojure.string/join "," (conj '("host=\"serverA\"" "region=\"us_west\"") measurement))

"----"
"----"
"----"

;; conj working on vectors
(conj [] measurement)

(conj ["host=\"serverA\"" "region=\"us_west\""] measurement)

(clojure.string/join "," (conj ["host=\"serverA\"" "region=\"us_west\""] measurement))
Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14