示例#1
0
 /// <summary>
 /// Counts the Either
 /// </summary>
 /// <typeparam name="L">Left</typeparam>
 /// <typeparam name="R">Right</typeparam>
 /// <param name="either">Either to count</param>
 /// <returns>1 if the Either is in a Right state, 0 otherwise.</returns>
 public static int count <L, R>(EitherUnsafe <L, R> either) =>
 either.Count();