コード例 #1
0
 /// <summary>
 /// Project the Either into an array of L
 /// </summary>
 /// <typeparam name="L">Left</typeparam>
 /// <typeparam name="R">Right</typeparam>
 /// <param name="either">Either to project</param>
 /// <returns>If the Either is in a Right state, an array of L with one item.  A zero length array of L otherwise</returns>
 public static L[] leftToArray <L, R>(EitherUnsafe <L, R> either) =>
 either.LeftToArray();