Supposing I had:
(def a-map {:foo "bar" :biz {:baz "qux"}})
How would I find the path of keys to a given value "qux" such that
(get-in a-map <the resulting path>)
would return "qux"?
In other words, a function that takes a-map and "qux" and returns [:biz :baz].
I would then be able to use the returned path like this:
(get-in a-map [:biz :baz])
and get "qux".
The paths I need are going to be far more nested than this simple example.
I am wanting to find the path to a given value in html that has been parsed into an array map using hickory. I want to do this without having to try to mentally navigate down through dozens of nested key/values. I'm open to other strategies.