title: IllegalArgumentException Key must be integer error in Clojure
body: <p>Am getting the subject error when trying to do a simple thread macro.</p>
  
  <p>Keyword defines </p>
  
  <pre><code>(def entityType (keyword "name"))
  (def entityURI (keyword "uri"))
  </code></pre>
  
  <p>I have the following 'lazy' sequence:</p>
  
  <pre><code>(def m1
      (({:uri "...#OWLClass_82601afd_b43d_43b4_94fe_2836f40009ca", :name "foo"} 
      {:uri "...#OWLClass_8c6759f0_a165_4a09_a9d8_2603bb106fc6", :name "bar"}))
  </code></pre>
  
  <p>Here is the REPL thread:</p>
  
  <pre><code>(-&gt;&gt; (first m1)
       (map (fn [rec] (rec entityType))))
  </code></pre>
  
  <p>And the resulting error:</p>
  
  <pre><code>IllegalArgumentException Key must be integer  clojure.lang.APersistentVector.invoke (APersistentVector.java:265)
  </code></pre>
  
  <p>Anyone with any insight?</p>