示例#1
0
 /// <summary>
 /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. The arity of the functionreturned is specified to allow using variadic constructor functions.
 /// <para />
 /// sig: Number -> (* -> {*}) -> (* -> {*})
 /// </summary>
 /// <param name="n">The arity of the constructor function.</param>
 /// <param name="Fn">The constructor function to wrap.</param>
 /// <returns>A wrapped, curried constructor function.</returns>
 public static dynamic ConstructN <TTarget>(RamdaPlaceholder n = null)
 {
     return(Currying.ConstructN(n, typeof(TTarget)));
 }
示例#2
0
 /// <summary>
 /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. The arity of the functionreturned is specified to allow using variadic constructor functions.
 /// <para />
 /// sig: Number -> (* -> {*}) -> (* -> {*})
 /// </summary>
 /// <param name="n">The arity of the constructor function.</param>
 /// <param name="Fn">The constructor function to wrap.</param>
 /// <returns>A wrapped, curried constructor function.</returns>
 public static dynamic ConstructN <TTarget>(int n)
 {
     return(Currying.ConstructN(n, typeof(TTarget)));
 }
示例#3
0
 /// <summary>
 /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. The arity of the functionreturned is specified to allow using variadic constructor functions.
 /// <para />
 /// sig: Number -> (* -> {*}) -> (* -> {*})
 /// </summary>
 /// <param name="n">The arity of the constructor function.</param>
 /// <param name="Fn">The constructor function to wrap.</param>
 /// <returns>A wrapped, curried constructor function.</returns>
 public static dynamic ConstructN(int n, dynamic Fn)
 {
     return(Currying.ConstructN(n, Delegate(Fn)));
 }
示例#4
0
 /// <summary>
 /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. The arity of the functionreturned is specified to allow using variadic constructor functions.
 /// <para />
 /// sig: Number -> (* -> {*}) -> (* -> {*})
 /// </summary>
 /// <param name="n">The arity of the constructor function.</param>
 /// <param name="Fn">The constructor function to wrap.</param>
 /// <returns>A wrapped, curried constructor function.</returns>
 public static dynamic ConstructN(RamdaPlaceholder n = null, RamdaPlaceholder Fn = null)
 {
     return(Currying.ConstructN(n, Fn));
 }
示例#5
0
 /// <summary>
 /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. The arity of the functionreturned is specified to allow using variadic constructor functions.
 /// <para />
 /// sig: Number -> (* -> {*}) -> (* -> {*})
 /// </summary>
 /// <param name="n">The arity of the constructor function.</param>
 /// <param name="Fn">The constructor function to wrap.</param>
 /// <returns>A wrapped, curried constructor function.</returns>
 public static dynamic ConstructN(RamdaPlaceholder n, dynamic Fn)
 {
     return(Currying.ConstructN(n, Delegate(Fn)));
 }