title: Korma: or'ing dynamically generated where clauses
body: <p>I have a set of dynamically generated parameters in a form of a map like</p>
  
  <pre><code>(def clauses {:apples 23 :plums 0 :bananas 7})
  </code></pre>
  
  <p>and I want to have it or'ed in a <code>where</code> statement, so it should become an equivalent of the Korma query:</p>
  
  <pre class="lang-clj prettyprint-override"><code>(select fruit-shop
    (where (or {:apples 23}
               {:plums 0}
               {:bananas 7})))
  </code></pre>
  
  <p>Generating a list of maps is quite easy:</p>
  
  <pre><code>(map #(apply array-map %)
       (into [] clauses))
  </code></pre>
  
  <p>But one can't use <code>(or</code> statement applied to it, because it's handled at macro expansion time, before the <code>clauses</code> becomes bound to its value.</p>
  
  <p>What statement should be used in such case?</p>