Пример #1
0
 public static Either <TLeft, TRight> Flatten <TLeft, TRight>(
     this Either <TLeft, Either <TLeft, TRight> > square)
 => Either <TLeft, TRight> .μ(square);
Пример #2
0
 /// <summary>
 /// Removes one level of structure, projecting its bound value into the outer level.
 /// </summary>
 public static Either <T, TRight> Flatten <T, TRight>(this Either <Either <T, TRight>, TRight> @this)
 => Either <T, TRight> .μ(@this);