Add some nil exposition
This commit is contained in:
parent
25b2f11247
commit
bd4bcad22a
@ -4,6 +4,7 @@
|
||||
true
|
||||
false
|
||||
true
|
||||
true
|
||||
3]}]
|
||||
|
||||
["02_lists" {"__" [1 2 3 4 5
|
||||
@ -20,9 +21,8 @@
|
||||
()]}]
|
||||
|
||||
["03_vectors" {"__" [1
|
||||
[]
|
||||
[1]
|
||||
[nil]
|
||||
[nil nil]
|
||||
2
|
||||
[333]
|
||||
:peanut
|
||||
|
@ -17,5 +17,8 @@
|
||||
"But a looser equality is also possible"
|
||||
(= __ (== 2.0 2))
|
||||
|
||||
"Something is not equal to nothing"
|
||||
(= __ (not (= 1 nil)))
|
||||
|
||||
"When things cannot be equal, they must be different"
|
||||
(not= :fill-in-the-blank __))
|
||||
|
@ -1,15 +1,12 @@
|
||||
(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]))
|
||||
|
||||
"You can create a vector in several ways"
|
||||
(= __ (vec nil))
|
||||
|
||||
"And populate it in either of these ways"
|
||||
"You can create a vector from a list"
|
||||
(= __ (vec '(1)))
|
||||
|
||||
"There is another way as well"
|
||||
(= __ (vector nil))
|
||||
"Or from some elements"
|
||||
(= __ (vector nil nil))
|
||||
|
||||
"But you can populate it with any number of elements at once"
|
||||
(= [1 __] (vec '(1 2)))
|
||||
|
Loading…
Reference in New Issue
Block a user