pike.git / lib / modules / Function.pmod

version» Context lines:

pike.git/lib/modules/Function.pmod:91:   //! Partially evaluate a function call.   //!   //! This function returns a function that when called will do the   //! specified argument mapping. It is similar to @[curry], but allows   //! more dynamic changes of the argument evaluation, you can leave the   //! first argument unspecified while setting others, or simply change   //! the argument order.   //!   //! The first argument is the function to be called.   //! - //! All other arguments is either a generic value, which will be sent as-is to the funciton - //! or one of the placeholder values define in [Function.Placeholder], - //! or one of your own implementation (inherit + //! All other arguments is either a generic value, which will be sent + //! as-is to the funciton or one of the placeholder values define in + //! [Function.Placeholder], or one of your own implementation (inherit   //! Function.Placeholder.Base and implement the value function.).   //!   //! @example   //! This example returns a funciton that limits the given argument   //! to between 0 and 99.   //! @code - //! import Functio.Placeholder; + //! import Function.Placeholder;   //! function clip = Function.bind(limit, 0, arg0, 100);   //! @endcode   class bind(function f, mixed ... bind_args)   {    protected string _sprintf() {    return sprintf("Function.bind(%O%{, %O%})",f,bind_args);    }       protected mixed `()(mixed ... args)    {