Ejemplo n.º 1
0
 public static ILendable <C> SelectMany <A, B, C>(this ILendable <A> lendable, Func <A, ILendable <B> > bind, Func <A, B, C> select)
 {
     return(lendable
            .Bind((a) => bind(a)
                  .Map((b) => select(a, b))));
 }
Ejemplo n.º 2
0
 public static ILendable <B> SelectMany <A, B>(this ILendable <A> lendable, Func <A, ILendable <B> > f)
 {
     return(lendable.Bind(f));
 }