Пример #1
0
 [PublicAPI] public static Either <L, R2> SelectMany <L, R, R1, R2>(
     this Either <L, R> opt, Fn <R, Either <L, R1> > f, Fn <R, R1, R2> g
     ) => opt.flatMapRight(f, g);
Пример #2
0
 public static Either <A, B> flatten <A, B>(this Either <A, Either <A, B> > e) =>
 e.flatMapRight(_ => _);
Пример #3
0
 [PublicAPI] public static Either <L, R1> SelectMany <L, R, R1>(this Either <L, R> e, Fn <R, Either <L, R1> > f) =>
 e.flatMapRight(f);
Пример #4
0
 public static Either <A, B> flatten <A, B>(this Either <A, Either <A, B> > e)
 {
     return(e.flatMapRight(_ => _));
 }