|
|
|
@ -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)))
|
|
|
|
|