This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-22
Channels
- # aws (5)
- # bangalore-clj (3)
- # beginners (84)
- # boot (31)
- # carry (1)
- # cider (6)
- # cljsrn (7)
- # clojure (188)
- # clojure-conj (1)
- # clojure-dev (3)
- # clojure-dusseldorf (8)
- # clojure-greece (10)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-russia (45)
- # clojure-spec (5)
- # clojure-uk (64)
- # clojurescript (83)
- # clr (9)
- # core-async (45)
- # cursive (55)
- # datomic (8)
- # devops (1)
- # emacs (7)
- # graphql (1)
- # hoplon (3)
- # jobs (1)
- # jobs-discuss (37)
- # lein-figwheel (3)
- # leiningen (4)
- # luminus (6)
- # off-topic (5)
- # om (2)
- # onyx (33)
- # pedestal (13)
- # re-frame (9)
- # reagent (28)
- # rum (15)
- # specter (4)
- # unrepl (38)
- # vim (3)
Is Specter a good tool for the following task? I have a representation of file tree {:dirs {"name" <...> "name2" <..>} :files {"fname" <...> "fname2" <...>}}
, where values in map under :dirs
are of the same structure. And I also have a file path "name/subname/subname/filename". I need to return a new file tree with this path added, potentially creating any missing intermediate directories.
@dottedmag it'll help but won't be as compelling as it is for a lot of other use cases
for this I would dynamically create a path using reduce, comp-paths, and keypath
@nathanmarz Yep, I've got the same impression. Looks like a zipper is a better fit for this particular problem.