Exemple #1
0
 public static NonEmptyLazyList <B> Ap <A, B>(this NonEmptyLazyList <Func <A, B> > f, NonEmptyLazyList <A> arg)
 {
     return(f.Bind(arg.Map));
 }
Exemple #2
0
 public static NonEmptyLazyList <C> SelectMany <A, B, C>(this NonEmptyLazyList <A> m, Func <A, NonEmptyLazyList <B> > k, Func <A, B, C> f)
 {
     return(m.Bind(a => k(a).Bind <B, C>(b => f(a, b).PureNonEmptyLazyList())));
 }
Exemple #3
0
 public static NonEmptyLazyList <A> Join <A>(this NonEmptyLazyList <NonEmptyLazyList <A> > list)
 {
     return(list.Bind(a => a));
 }
Exemple #4
0
 public static NonEmptyLazyList <B> SelectMany <A, B>(this NonEmptyLazyList <A> m, Func <A, NonEmptyLazyList <B> > k)
 {
     return(m.Bind(k));
 }