forked from functional-koans/clojure-koans
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
(meditations | ||
"We shall contemplate truth by testing reality, via equality." | ||
(= __ true) | ||
(= true true) | ||
|
||
"To understand reality, we must compare our expectations against reality." | ||
(= __ (+ 1 1)) | ||
(= 2 (+ 1 1)) | ||
|
||
"You can test equality of many things" | ||
(= (+ 3 4) __ (+ 2 __)) | ||
(= (+ 3 4) 7 (+ 2 5)) | ||
|
||
"Some things may appear different, but be the same" | ||
(= 2 2/1 __) | ||
(= 2 2/1 4/2) | ||
|
||
"You cannot generally float to heavens of integers" | ||
(= __ (= 2 2.0)) | ||
(= false (= 2 2.0)) | ||
|
||
"But a looser equality is also possible" | ||
(== 2.0 2 __) | ||
(== 2.0 2 2/1) | ||
|
||
"When things cannot be equal, they must be different" | ||
(not= :fill-in-the-blank __)) | ||
(not= :fill-in-the-blank :foo)) |