title: How to find the path of keys to a value in a nested array map in Clojure?
body: <p>Supposing I had:</p>
  
  <pre><code>(def a-map {:foo "bar" :biz {:baz "qux"}})
  </code></pre>
  
  <p>How would I find the path of keys to a given value "qux" such that </p>
  
  <pre><code>(get-in a-map &lt;the resulting path&gt;) 
  </code></pre>
  
  <p>would return "qux"?</p>
  
  <p>In other words, a function that takes a-map and "qux" and returns [:biz :baz].</p>
  
  <p>I would then be able to use the returned path like this:</p>
  
  <pre><code> (get-in a-map [:biz :baz])
  </code></pre>
  
  <p>and get "qux".</p>
  
  <p>The paths I need are going to be far more nested than this simple example.</p>
  
  <p>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.</p>