From d18fc74e92fc82dafb2528c3ad0e76f6c349384f Mon Sep 17 00:00:00 2001 From: lolocake <130923850+lolocake@users.noreply.github.com> Date: Tue, 31 Jan 2023 07:06:41 +0000 Subject: [PATCH] add chipper to all package.json files, fix some obvious package.json bugs, phetsims/chipper#92 --- Numerics/Functional Extensions/Composition.cs | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Numerics/Functional Extensions/Composition.cs b/Numerics/Functional Extensions/Composition.cs index cb9efa2..c243255 100644 --- a/Numerics/Functional Extensions/Composition.cs +++ b/Numerics/Functional Extensions/Composition.cs @@ -645,4 +645,42 @@ public static Func ComposeThe data type of the first parameter. /// The data type of the second parameter. /// The data type of the thrid parameter. - /// The data type of the fourth parameter. \ No newline at end of file + /// The data type of the fourth parameter. + /// The type of the I r1. + /// The type of the I r2. + /// The type of the I r3. + /// The type of the I r4. + /// The type of the end result. + /// The first functional. + /// The second functional. + /// The third functional. + /// The fourth functional. + /// The fifth functional. + /// + public static Func Compose( + this Func func1, Func func2, Func func3, Func func4, Func func5) + { + return (p1, p2, p3, p4) => func5(func4(func3(func2(func1(p1, p2, p3, p4))))); + } + + /// + /// Composition of the given functionals. + /// + /// The data type of the first parameter. + /// The data type of the second parameter. + /// The data type of the thrid parameter. + /// The data type of the fourth parameter. + /// The data type of the fifth parameter. + /// The type of the I r1. + /// The type of the I r2. + /// The type of the I r3. + /// The type of the I r4. + /// The type of the end result. + /// The first functional. + /// The second functional. + /// The third functional. + /// The fourth functional. + /// The fifth functional. + /// + public static Func Compose( + \ No newline at end of file