clojure-koans/src/koans/01_equalities.clj

22 lines
548 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"
2010-11-04 13:01:34 +00:00
(== 2.0 2 __)
"When things cannot be equal, they must be different"
(not= :fill-in-the-blank __))