pike.git / lib / modules / Function.pmod

version» Context lines:

pike.git/lib/modules/Function.pmod:91:      //! This function, given a function taking N parameters, returns a new   //! function taking N+1 parameters. The first argument will be   //! ignored.   //!   //! @example   //! @code   //! > Function.uncurry(`+)(7,2,3)   //! Result: 5   //! @endcode - function(mixed...:function(mixed...:mixed|void)) uncurry(function f) + function(mixed...:mixed) uncurry(function f)   {    return lambda(mixed ... args1) {    return f(@args1[1..]);    };   }      //! Call a callback function, but send throws from the callback   //! function (ie, errors) to master()->handle_error.   //! Also accepts if f is zero (0) without error.   //!