jPaq Docs - Function.prototype.curry()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  767


Takes one or more arguments and stores them to be used when the returned function is called.


Returns a new function with the specified arguments already filled in.

Related Examples

  1. Compacting Arrays
    The JavaScript library Prototype offers a function which basically removes all of the undefined and null values from the array. Fortunately, JavaScript 1.6 offers…
  2. Flatten Arrays
    One of the nice functions that is provided in Prototype is Array.prototype.flatten().  It gives you the ability to turn arrays such as…
  3. Currying Up String Functions
    You ever wonder how libraries such as jPaq and Prototype add prototype functions to different classes?  At for jPaq, it isn't by relying…
  4. Currying
    At times, you may want to call a function a number of times, but you may notice that the first few arguments are always the…