示例#1
0
 /// <summary>
 /// Accepts a converging function and a list of branching functions and returnsa new function. When invoked, this new function is applied to somearguments, each branching function is applied to those same arguments. Theresults of each branching function are passed as arguments to the convergingfunction to produce the return value.
 /// <para />
 /// sig: (x1 -> x2 -> ... -> z) -> [(a -> b -> ... -> x1), (a -> b -> ... -> x2), ...] -> (a -> b -> ... -> z)
 /// </summary>
 /// <param name="after">A function. `after` will be invoked with the return values of       `fn1` and `fn2` as its arguments.</param>
 /// <param name="functions">A list of functions.</param>
 /// <returns>A new function.</returns>
 /// <see cref="R.UseWith"/>
 public static dynamic Converge(RamdaPlaceholder after = null, RamdaPlaceholder functions = null)
 {
     return(Currying.Converge(after, functions));
 }
示例#2
0
 /// <summary>
 /// Accepts a converging function and a list of branching functions and returnsa new function. When invoked, this new function is applied to somearguments, each branching function is applied to those same arguments. Theresults of each branching function are passed as arguments to the convergingfunction to produce the return value.
 /// <para />
 /// sig: (x1 -> x2 -> ... -> z) -> [(a -> b -> ... -> x1), (a -> b -> ... -> x2), ...] -> (a -> b -> ... -> z)
 /// </summary>
 /// <param name="after">A function. `after` will be invoked with the return values of       `fn1` and `fn2` as its arguments.</param>
 /// <param name="functions">A list of functions.</param>
 /// <returns>A new function.</returns>
 /// <see cref="R.UseWith"/>
 public static dynamic Converge(dynamic after, RamdaPlaceholder functions = null)
 {
     return(Currying.Converge(Delegate(after), functions));
 }
示例#3
0
 /// <summary>
 /// Accepts a converging function and a list of branching functions and returnsa new function. When invoked, this new function is applied to somearguments, each branching function is applied to those same arguments. Theresults of each branching function are passed as arguments to the convergingfunction to produce the return value.
 /// <para />
 /// sig: (x1 -> x2 -> ... -> z) -> [(a -> b -> ... -> x1), (a -> b -> ... -> x2), ...] -> (a -> b -> ... -> z)
 /// </summary>
 /// <param name="after">A function. `after` will be invoked with the return values of       `fn1` and `fn2` as its arguments.</param>
 /// <param name="functions">A list of functions.</param>
 /// <returns>A new function.</returns>
 /// <see cref="R.UseWith"/>
 public static dynamic Converge(dynamic after, IList <Delegate> functions)
 {
     return(Currying.Converge(Delegate(after), functions));
 }
示例#4
0
 /// <summary>
 /// Accepts a converging function and a list of branching functions and returnsa new function. When invoked, this new function is applied to somearguments, each branching function is applied to those same arguments. Theresults of each branching function are passed as arguments to the convergingfunction to produce the return value.
 /// <para />
 /// sig: (x1 -> x2 -> ... -> z) -> [(a -> b -> ... -> x1), (a -> b -> ... -> x2), ...] -> (a -> b -> ... -> z)
 /// </summary>
 /// <param name="after">A function. `after` will be invoked with the return values of       `fn1` and `fn2` as its arguments.</param>
 /// <param name="functions">A list of functions.</param>
 /// <returns>A new function.</returns>
 /// <see cref="R.UseWith"/>
 public static dynamic Converge(RamdaPlaceholder after, IList <Delegate> functions)
 {
     return(Currying.Converge(after, functions));
 }