title: Scala `Application does not take parameters` compile error
body: <p>I am trying to come up with a simple function that takes a function and list of integers and apply the function on every integer in the list -</p>
  
  <pre><code>    def IntOps(f: Int =&gt; Int)(values: List[Int]): Int = {
       if(values.isEmpty) 0
       //Getting "Application does not take parameters" in values.tail
       else IntOps(f(values.head)(values.tail))
      }
      IntOps(x=&gt; x+x)(List(1, 2, 30)
  </code></pre>
  
  <p>I am getting a compiler error <code>Application does not take parameters</code> on <code>values.tail</code>, I am beginner to both Functional programming and scala so any pointers or answers to understand this would be great.</p>