コード例 #1
0
 /// <summary>
 /// Apply an Either value to an Either function of arity 2
 /// </summary>
 /// <param name="self">Either function</param>
 /// <param name="arg">Either argument</param>
 /// <returns>Returns the result of applying the Either argument to the Either function:
 /// an Either function of arity 1</returns>
 public static EitherUnsafe <L, Func <T2, R> > apply <L, T1, T2, R>(EitherUnsafe <L, Func <T1, T2, R> > either, EitherUnsafe <L, T1> arg) =>
 either.Apply(arg);
コード例 #2
0
 /// <summary>
 /// Apply Either values to an Either function of arity 2
 /// </summary>
 /// <param name="self">Either function</param>
 /// <param name="arg1">Either argument</param>
 /// <param name="arg2">Either argument</param>
 /// <returns>Returns the result of applying the optional arguments to the optional function</returns>
 public static EitherUnsafe <L, R> apply <L, T1, T2, R>(EitherUnsafe <L, Func <T1, T2, R> > either, EitherUnsafe <L, T1> arg1, EitherUnsafe <L, T2> arg2) =>
 either.Apply(arg1, arg2);
コード例 #3
0
 /// <summary>
 /// Apply an Either value to an Either function
 /// </summary>
 /// <param name="either">Either function</param>
 /// <param name="arg">Either argument</param>
 /// <returns>Returns the result of applying the Either argument to the Either function</returns>
 public static EitherUnsafe <L, Res> apply <L, R, Res>(EitherUnsafe <L, Func <R, Res> > either, EitherUnsafe <L, R> arg) =>
 either.Apply(arg);