Add some nil exposition

This commit is contained in:
Micah Martin and Colin Jones 2013-03-04 17:06:46 -06:00
parent 25b2f11247
commit bd4bcad22a
3 changed files with 9 additions and 9 deletions

View File

@ -4,6 +4,7 @@
true true
false false
true true
true
3]}] 3]}]
["02_lists" {"__" [1 2 3 4 5 ["02_lists" {"__" [1 2 3 4 5
@ -20,9 +21,8 @@
()]}] ()]}]
["03_vectors" {"__" [1 ["03_vectors" {"__" [1
[]
[1] [1]
[nil] [nil nil]
2 2
[333] [333]
:peanut :peanut

View File

@ -17,5 +17,8 @@
"But a looser equality is also possible" "But a looser equality is also possible"
(= __ (== 2.0 2)) (= __ (== 2.0 2))
"Something is not equal to nothing"
(= __ (not (= 1 nil)))
"When things cannot be equal, they must be different" "When things cannot be equal, they must be different"
(not= :fill-in-the-blank __)) (not= :fill-in-the-blank __))

View File

@ -1,15 +1,12 @@
(meditations (meditations
"You can use vectors in clojure to create an 'Array' like structure" "You can use vectors in clojure as array-like structures"
(= __ (count [42])) (= __ (count [42]))
"You can create a vector in several ways" "You can create a vector from a list"
(= __ (vec nil))
"And populate it in either of these ways"
(= __ (vec '(1))) (= __ (vec '(1)))
"There is another way as well" "Or from some elements"
(= __ (vector nil)) (= __ (vector nil nil))
"But you can populate it with any number of elements at once" "But you can populate it with any number of elements at once"
(= [1 __] (vec '(1 2))) (= [1 __] (vec '(1 2)))