pike.git / lib / modules / Function.pmod

version» Context lines:

pike.git/lib/modules/Function.pmod:72:   //! M parameters (N<=M), yielding a new function taking M-N parameters.   //!   //! What is actually returned from this function is a function taking N   //! parameters, and returning a function taking M-N parameters.   //!   //! @example   //! This example creates a function adding 7 to its argument.   //! @code   //! Function.curry(`+)(7)   //! @endcode - function curry(function f) + function(mixed...:function(mixed...:mixed|void)) curry(function f)   {    return lambda(mixed ... args1) {    return lambda(mixed ... args2) {    return f(@args1, @args2);    };    };   }         //! Call a callback function, but send throws from the callback