The Clojure cheatsheet contains assoc-in for vectors. The ClojureScript cheatsheet does not. ...but assoc-in works for me in CLJS. https://clojure.org/api/cheatsheet https://cljs.info/cheatsheet/ I was just learning about assoc and assoc-in because it seems like I need at least one of them for something I just wanted to do. (That was changing one specific value in a 2-d vector that is an atom. Are there any other ways?). Referring to the cheatsheets left me thinking at first that assoc-in doesn't work in CLJS. I happened to test it anyway and correct that impression, but is there a way to request having the ClojureScript cheatsheet updated to include it (so no-one else is led astray)? Also, are there any other cases of forms missing from that cheatsheet but actually usable in CLJS?
The safer assumption would be that whatever works in CLJ also works in CLJS, unless it's clearly JVM-related or is mentioned on this page https://clojurescript.org/about/differences.
> That was changing one specific value in a 2-d vector that is an atom. Are there any other ways?
Specifically for nested vectors, assoc-in is exactly what I'd use.
But it might very well be that a completely different data structure would be a better fit. So, depends.
> is there a way to request having the ClojureScript cheatsheet updated to include it (so no-one else is led astray)?
http://cljs.info is someone else's website. The page links to this GitHub page, where you can create an issue and maybe even a PR: https://github.com/oakmac/cljs-cheatsheet/
Maybe 99.99%. :)
In that case I guess I should just refer to the Clojure cheatsheet...except for JS interop?
> http://cljs.info is someone else's website. The page links to this GitHub page, where you can create an issue and maybe even a PR: https://github.com/oakmac/cljs-cheatsheet/ I haven't used git beyond maybe a couple of enter-the-magic-incantation downloads and installations to set things up, and for reading up code examples. If or when I know more about how to use it, though, I will try to request a fix or submit a fix for the cheatsheet.
> In that case I guess I should just refer to the Clojure cheatsheet...except for JS interop? And except all those things from the "differences" page. > I haven't used git beyond maybe a couple of enter-the-magic-incantation downloads Just because I'm a pedant: "Git" and "GitHub" are different things. The issue tracker is GitHub-specific, nothing to do with Git. But nothing complicated about it - creating an issue is not too different from making a post on Slack.