Beispiel #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);
Beispiel #2
0
 public static Either <A, B> flatten <A, B>(this Either <A, Either <A, B> > e) =>
 e.flatMapRight(_ => _);
Beispiel #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);
Beispiel #4
0
 public static Either <A, B> flatten <A, B>(this Either <A, Either <A, B> > e)
 {
     return(e.flatMapRight(_ => _));
 }