title: Does JavaScript support partial function application?
body: <p>Reading through the Wikipedia article on First-Class functions, there is a nice table of language support for various aspects of functional programming: <a href="http://en.wikipedia.org/wiki/First-class_function#Language_support">http://en.wikipedia.org/wiki/First-class_function#Language_support</a></p>
  
  <p>JavaScript is listed as not having partial function application. However, there are techniques for creating a function that returns a function that with some of the parameters stored in a closure, ie:</p>
  
  <pre><code>var add = function(a, b){
      return a + b;
  },
  apply = function(fn, a){
      return function(b){ 
          return fn(a, b); 
      }
  },
  addFive = apply(add, 5);
  
  console.log(addFive(2)); // prints 7
  </code></pre>
  
  <p>Is this not partial function application? If not, could someone please provide an example of partial function application in another language and explain how it is different?</p>
  
  <p>Thanks!</p>