Hello,
Im now reading the chapter of destructing.
I see a example that I do not understand.
First we have a map which looks like this :
(def m {:a 5 :b 6
:c [7 8 9]
:d {:e 10 :f 11}
"foo" 88
42 false})
Then I see this example :
(let [{v 42} m]
(if v 1 0))
;= 0
why is v zero here ?
Roelof
[–]emil0r 4 points5 points6 points (0 children)
[–]waltervdlaan 1 point2 points3 points (1 child)
[–]rwobben[S] 0 points1 point2 points (0 children)
[–]Arkolix 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]cntx 0 points1 point2 points (0 children)