Esempio n. 1
0
 public static IResult <S, E> Join <S, E>(
     this IResult <IResult <S, E>, E> source)
 {
     return(source.Accept(new JoinResultVisitor <S, E>()));
 }
Esempio n. 2
0
 public static IResult <S, E2> SelectError <S, E1, E2>(
     this IResult <S, E1> source,
     Func <E1, E2> selector)
 {
     return(source.Accept(new SelectErrorResultVisitor <S, E1, E2>(selector)));
 }
Esempio n. 3
0
 public static IResult <S2, E> Select <S1, S2, E>(
     this IResult <S1, E> source,
     Func <S1, S2> selector)
 {
     return(source.Accept(new SelectResultVisitor <S1, S2, E>(selector)));
 }
Esempio n. 4
0
 public static T Bifold <T>(this IResult <T, T> source)
 {
     return(source.Accept(new BifoldResultVisitor <T>()));
 }