pike.git / lib / modules / Function.pmod

version» Context lines:

pike.git/lib/modules/Function.pmod:12:   //! @param args   //! The first arguments the function @[f] expects.   //! @param f   //! The function to apply the arguments on.   //! @param extra   //! Optional extra arguments to send to @[f].   //! @returns   //! Whatever the supplied function @[f] returns.   //!   //! @example - //! @code{ + //! @code   //! class Product(string name, string version)   //! {   //! string _sprintf()   //! {   //! return sprintf("Product(%s/%s)", name, version);   //! }   //! }   //! map(({ ({ "pike", "7.1.11" }),   //! ({ "whitefish", "0.1" }) }),   //! Function.splice_call, Product);   //! ({ /* 2 elements */   //! Product(pike/7.1.11),   //! Product(whitefish/0.1)   //! }) - //! @} + //! @endcode   mixed splice_call(array args, function f, mixed|void ... extra)   {    return f(@args, @extra);   }