title: Converting expression to pointfree style (Haskell)
body: <p>I wrote this code and I have to rewrite it to the pointfree style:</p>
  
  <pre><code>num_of_occ ele list = length(filter(==ele)list) 
  </code></pre>
  
  <p>So I did this:</p>
  
  <pre><code>num_of_occ ele = length . filter((==)ele)
  </code></pre>
  
  <p>It works. Than I did this:</p>
  
  <pre><code>num_of_occ = length . filter . (==)
  </code></pre>
  
  <p>And it doesnt... what's wrong with my line of thought?</p>