This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-05
Channels
- # beginners (135)
- # cider (30)
- # clara (66)
- # cljs-dev (18)
- # cljsrn (6)
- # clojure (115)
- # clojure-austin (1)
- # clojure-dev (10)
- # clojure-italy (7)
- # clojure-nl (1)
- # clojure-spec (18)
- # clojure-uk (26)
- # clojurescript (76)
- # cursive (2)
- # datomic (4)
- # devops (1)
- # emacs (19)
- # fulcro (159)
- # garden (3)
- # klipse (5)
- # leiningen (5)
- # off-topic (61)
- # om (7)
- # pedestal (6)
- # re-frame (17)
- # reagent (73)
- # ring-swagger (6)
- # rum (5)
- # shadow-cljs (60)
- # spacemacs (31)
- # specter (4)
- # vim (8)
- # yada (1)
Hi folks. I have a map and want to transform
it to a nested map by applying a function to the key. A contrived example would be {"ab" 5, "az" 10}
would become {"a" {"b" 5, "z 10}
. I don't see a way to do this with transform
—am I missing something?
@daveliepmann that's a restructure of the entire data structure, so specter won't be better than just doing it without
specter lets you target a precise part of a data structure and only change that part, which isn't the case here
I had that suspicion, but it helps to hear it from the source. Thanks! 🙂