Leave out vec nil for now
This commit is contained in:
parent
bd4bcad22a
commit
d275ab804d
@ -24,7 +24,7 @@
|
|||||||
[1]
|
[1]
|
||||||
[nil nil]
|
[nil nil]
|
||||||
2
|
2
|
||||||
[333]
|
[111 222 333]
|
||||||
:peanut
|
:peanut
|
||||||
:jelly
|
:jelly
|
||||||
:jelly
|
:jelly
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
"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)))
|
||||||
|
|
||||||
"And add to it as well"
|
"Conjoining to a vector is different than to a list"
|
||||||
(= __ (conj (vec nil) 333))
|
(= __ (conj [111 222] 333))
|
||||||
|
|
||||||
"You can get the first element of a vector like so"
|
"You can get the first element of a vector like so"
|
||||||
(= __ (first [:peanut :butter :and :jelly]))
|
(= __ (first [:peanut :butter :and :jelly]))
|
||||||
|
Loading…
Reference in New Issue
Block a user