Thank you both, Francis and Andy! :)
On Thu, Aug 6, 2015 at 7:54 PM, Andy Fingerhut
wrote:
> I have added assoc-in to the Vectors/'Change' section of the cheat sheet
> that is available here: http://jafingerhut.github.io
>
> That is where the latest version is published. The version at
> clojur
I have added assoc-in to the Vectors/'Change' section of the cheat sheet
that is available here: http://jafingerhut.github.io
That is where the latest version is published. The version at
clojure.org/cheatsheet gets updated less frequently -- typically a couple
of times a year, when there are mor
assoc-in "works" for vectors in the sense that both vectors and maps
implement ILookup (get) and IAssoc (assoc). assoc-in can navigate any
collection that understands "get" (including sets!), and add to any
collection that understands "assoc".
However, assoc-in will *always* create *maps* when
Dunno if this is the correct place and way to suggest a correction:
Someone just mentioned to me that (assoc-in) seems to only work for maps,
as the Cheat Sheet section on vectors doesn't mention it. I was able to
show him otherwise, but maybe this is something the CS should pick up?
--
You r