is there a function to collect the path to a given key
if i have map like this {"properties": { "assets": {"target-key"}}}, I want to collect the path to target-key which is [properties assets target-key]
is there a function in specter that does this
@huthayfa.ainqawi use the collect
navigators
someone just asked this recently
here's a code example:
(def MAP-VALS+ (path ALL (collect-one FIRST) LAST))
(transform [MAP-VALS+ MAP-VALS+ MAP-VALS]
(fn [k1 k2 v]
[k1 k2 v]
)
{"2018-05-22" {:A {123 "foo"}}})
@nathanmarz how do I select the target key