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