title: Converting a vector of maps to map of maps in Clojure
body: <p>I've a vector of maps like this:</p>
  
  <pre><code>[{:categoryid 1, :categoryname "foo" } 
   {:categoryid 2, :categoryname "bar" } 
   {:categoryid 3, :categoryname "baz" }]
  </code></pre>
  
  <p>and would like to generate a map of maps like this for searching by categoryname </p>
  
  <pre><code>{"foo" {:categoryid 1, :categoryname "foo" }, 
   "bar" {:categoryid 2, :categoryname "bar" }, 
   "baz" {:categoryid 3, :categoryname "baz" }}
  </code></pre>
  
  <p>How can I do this?</p>