Add some nil exposition
This commit is contained in:
parent
25b2f11247
commit
bd4bcad22a
@ -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
|
||||||
|
@ -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 __))
|
||||||
|
@ -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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user