/// <summary> /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. /// <para /> /// sig: (* -> {*}) -> (* -> {*}) /// </summary> /// <param name="fn">The constructor function to wrap.</param> /// <returns>A wrapped, curried constructor function.</returns> public static dynamic Construct(dynamic fn) { return(Currying.Construct(Delegate(fn))); }
/// <summary> /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. /// <para /> /// sig: (* -> {*}) -> (* -> {*}) /// </summary> /// <param name="fn">The constructor function to wrap.</param> /// <returns>A wrapped, curried constructor function.</returns> public static dynamic Construct(RamdaPlaceholder fn = null) { return(Currying.Construct(fn)); }
/// <summary> /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. /// <para /> /// sig: (* -> {*}) -> (* -> {*}) /// </summary> /// <param name="fn">The constructor function to wrap.</param> /// <returns>A wrapped, curried constructor function.</returns> public static dynamic Construct <TArg1, TArg2, TTarget>(Func <TArg1, TArg2, TTarget> fn) { return(Currying.Construct(fn)); }
/// <summary> /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. /// <para /> /// sig: (* -> {*}) -> (* -> {*}) /// </summary> /// <param name="fn">The constructor function to wrap.</param> /// <returns>A wrapped, curried constructor function.</returns> public static dynamic Construct <TTarget>(Func <TTarget> fn) { return(Currying.Construct(Delegate(fn))); }
/// <summary> /// Wraps a constructor function inside a curried function that can be calledwith the same arguments and returns the same type. /// <para /> /// sig: (* -> {*}) -> (* -> {*}) /// </summary> /// <param name="fn">The constructor function to wrap.</param> /// <returns>A wrapped, curried constructor function.</returns> public static dynamic Construct <TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TTarget>(Func <TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TTarget> fn) { return(Currying.Construct(fn)); }