Re: Should the Cheat Sheet mention assoc-in for vectors?

2015-08-06 Thread Carl Smotricz
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

Re: Should the Cheat Sheet mention assoc-in for vectors?

2015-08-06 Thread Andy Fingerhut
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

Re: Should the Cheat Sheet mention assoc-in for vectors?

2015-08-06 Thread Francis Avila
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

Should the Cheat Sheet mention assoc-in for vectors?

2015-08-06 Thread Carl Smotricz
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