internal PartialFunctionPre(ValueFunctionPre nested, Value passed) { m_nested = nested; m_passed = passed; }
/// <summary> /// Create a function that waits for the missing parameters passed to /// another function, then bundles them all up and calls the first function /// </summary> /// <param name="nested">function to call once we get remaining parameters</param> /// <param name="passed">arguments that have already been passed</param> /// <param name="needed">parameters we still need</param> internal PartialFunctionPre(ValueFunctionPre nested, Value passed, Value needed) { m_nested = nested; m_passed = passed; // our pattern is the remaining parameters; use same precedence as nested func Init(needed, nested.Order); }