34 lines
812 B
Clojure
34 lines
812 B
Clojure
(meditations
|
|
"We shall contemplate truth by testing reality, via equality"
|
|
(= __ true)
|
|
|
|
"To understand reality, we must compare our expectations against reality"
|
|
(= __ (+ 1 1))
|
|
|
|
"You can test equality of many things"
|
|
(= (+ 3 4) 7 (+ 2 __))
|
|
|
|
"Some things may appear different, but be the same"
|
|
(= __ (= 2 2/1))
|
|
|
|
"You cannot generally float to heavens of integers"
|
|
(= __ (= 2 2.0))
|
|
|
|
"But a looser equality is also possible"
|
|
(= __ (== 2.0 2))
|
|
|
|
"Something is not equal to nothing"
|
|
(= __ (not (= 1 nil)))
|
|
|
|
"Strings, and keywords, and symbols: oh my!"
|
|
(= __ (= "foo" :foo 'foo))
|
|
|
|
"Make a keyword with your keyboard"
|
|
(= :foo (keyword __))
|
|
|
|
"Symbolism is all around us"
|
|
(= 'foo (symbol __))
|
|
|
|
"When things cannot be equal, they must be different"
|
|
(not= :fill-in-the-blank __))
|