title: A case-insensitive filter in Clojure / ClojureScript
body: <p>I have this function :</p>
  
  <pre><code>(defn list-data [alist filter-text]
   (filter (fn [x] (if (nil? filter-text) true
                       (&gt; (.indexOf x filter-text) -1))) alist))
  
  (list-data ["Lion" "Zebra" "Buffalo" "Antelope"] "a")
  ;=&gt; ("Zebra" "Buffalo")
  </code></pre>
  
  <p>Is there a more idiomatic way of writing this function and respect the fact that I don't want a case-sensitive filter, meaning I would like that <code>(list-data ["Lion" "Zebra" "Buffalo" "Antelope"] "a")</code>returns the following:</p>
  
  <pre><code>;=&gt; ("Zebra" "Buffalo" "Antelope")
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>(This would need to work in a <code>.cljs</code> file)</p>