Exemplo n.º 1
0
 public static AbstractAction <Env, T1, T2> enhancedMulti <T1, T2>(Func <long, T1, List <T2> > f, bool threaded)
 {
     return(new KleisliMultiAction <T1, T2>(KleisliUtils <Env> .enhancedMaybe <T1, List <T2> >(
                                                (long d, T1 x) => {
         return f(d, x);
     }
                                                ), threaded));
 }
Exemplo n.º 2
0
 public static AbstractAction2 <Env, T1, T2, OutT> enhancedMulti2 <T1, T2, OutT>(Func <long, Either <T1, T2>, List <OutT> > f, bool threaded)
 {
     return(new KleisliMultiAction2 <T1, T2, OutT>(KleisliUtils <Env> .enhancedMaybe <Either <T1, T2>, List <OutT> >(
                                                       (long d, Either <T1, T2> x) => {
         return f(d, x);
     }
                                                       ), threaded));
 }
Exemplo n.º 3
0
 public static AbstractAction2 <Env, T1, T2, OutT> enhancedMaybe2 <T1, T2, OutT>(Func <long, Either <T1, T2>, Option <OutT> > f, bool threaded)
 {
     return(new KleisliAction2 <T1, T2, OutT>(KleisliUtils <Env> .enhancedMaybe <Either <T1, T2>, OutT>(f), threaded));
 }
Exemplo n.º 4
0
 public static AbstractAction <Env, T1, T2> enhancedMaybe <T1, T2>(Func <long, T1, Option <T2> > f, bool threaded)
 {
     return(new KleisliAction <T1, T2>(KleisliUtils <Env> .enhancedMaybe <T1, T2>(f), threaded));
 }