Using math and emoji characters in Clojure
Notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;; math_and_emoji_chars.clj
(def α 50)
(def β 0.7)
(* α β)
(def Γ 100)
(def happiness-vals
{"😀" 100 "😐" 50 "😢" 10})
(happiness-vals "😀") ;; works
(def happiness
{:😀 100 :😐 50 :😢 10})
(happiness :😐)
(get happiness :😐)
(def happiness-symbols
{'😀 100 '😐 50 '😢 10})
(happiness-symbols '😢)