示例#1
0
 /// <summary>
 /// Wraps a function of any arity (including nullary) in a function that acceptsexactly 2 parameters. Any extraneous parameters will not be passed to thesupplied function.
 /// <para />
 /// sig: (* -> c) -> (a, b -> c)
 /// </summary>
 /// <param name="fn">The function to wrap.</param>
 /// <returns>A new function wrapping `fn`. The new function is guaranteed to be of arity 2.</returns>
 public static dynamic Binary(dynamic fn)
 {
     return(Currying.Binary(Delegate(fn)));
 }
示例#2
0
 /// <summary>
 /// Wraps a function of any arity (including nullary) in a function that acceptsexactly 2 parameters. Any extraneous parameters will not be passed to thesupplied function.
 /// <para />
 /// sig: (* -> c) -> (a, b -> c)
 /// </summary>
 /// <param name="fn">The function to wrap.</param>
 /// <returns>A new function wrapping `fn`. The new function is guaranteed to be of arity 2.</returns>
 public static dynamic Binary(RamdaPlaceholder fn = null)
 {
     return(Currying.Binary(fn));
 }