clojure-koans/src/koans/equalities.clj

19 lines
460 B
Clojure
Raw Normal View History

(meditations
2010-07-26 23:20:42 +00:00
"We shall contemplate truth by testing reality, via equality."
(= __ true)
2010-07-26 23:20:42 +00:00
"To understand reality, we must compare our expectations against reality."
(= __ (+ 1 1))
2010-07-26 23:20:42 +00:00
"You can test equality of many things"
2010-10-29 15:18:09 +00:00
(= (+ 3 4) __ (+ 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 __))