title: threading macro -> with anonymous functions
body: <p>I understand the `-> theading macro in Clojure applies all the provided functions provided to a given argument. However, it doesn't seem to work with anonymous functions. For example:</p>
  
  <pre><code>user&gt; (-&gt; 4 inc inc dec)
  5
  </code></pre>
  
  <p>But:</p>
  
  <pre><code>user&gt; (-&gt; 4 #(+ % 1) #(- % 1) #(+ % 1))
  </code></pre>
  
  <p>Returns the error: </p>
  
  <pre><code>clojure.lang.Symbol cannot be cast to clojure.lang.IPersistentVector
  [Thrown class java.lang.ClassCastException]
  </code></pre>
  
  <p>If someone knows a way around it would be helpful. Thanks!</p>