Remove some answers.
Signed-off-by: Colin Jones <trptcolin@gmail.com>
This commit is contained in:
parent
03fee3e548
commit
4155a6b8ea
@ -24,7 +24,7 @@
|
|||||||
(= __ ({2006 "Torino" 2010 "Vancouver" 2014 "Sochi"} 2010))
|
(= __ ({2006 "Torino" 2010 "Vancouver" 2014 "Sochi"} 2010))
|
||||||
|
|
||||||
"You may not be able to find an entry for a key"
|
"You may not be able to find an entry for a key"
|
||||||
(= nil (get {:a 1 :b 2} :c))
|
(= __ (get {:a 1 :b 2} :c))
|
||||||
|
|
||||||
"You can find out if a key is present"
|
"You can find out if a key is present"
|
||||||
(= __ (contains? {:a nil :b nil} :b))
|
(= __ (contains? {:a nil :b nil} :b))
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
(= __ (.size (vec nil)))
|
(= __ (.size (vec nil)))
|
||||||
|
|
||||||
"You can create a vector in two ways"
|
"You can create a vector in two ways"
|
||||||
(= [] (vec nil))
|
(= __ (vec nil))
|
||||||
|
|
||||||
"And populate it in either of these ways"
|
"And populate it in either of these ways"
|
||||||
(= [1] (vec '(1)))
|
(= __ (vec '(1)))
|
||||||
|
|
||||||
"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)))
|
||||||
@ -15,7 +15,7 @@
|
|||||||
(= __ (conj (vec nil) 333))
|
(= __ (conj (vec nil) 333))
|
||||||
|
|
||||||
"You can get the first element of a vector like so"
|
"You can get the first element of a vector like so"
|
||||||
(= :peanut (first [:peanut :butter :and :jelly]))
|
(= __ (first [:peanut :butter :and :jelly]))
|
||||||
|
|
||||||
"And the last in a similar fashion"
|
"And the last in a similar fashion"
|
||||||
(= __ (last [:peanut :butter :and :jelly]))
|
(= __ (last [:peanut :butter :and :jelly]))
|
||||||
|
Loading…
Reference in New Issue
Block a user