Пример #1
0
 public static Option <Identity <B> > Sequence <A, B>(this Identity <A> ta, Func <A, Option <B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #2
0
 public static Validation <Fail, Identity <B> > Sequence <Fail, A, B>(this Identity <A> ta, Func <A, Validation <Fail, B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #3
0
 public static Eff <RT, Identity <B> > Sequence <RT, A, B>(this Identity <A> ta, Func <A, Eff <RT, B> > f) where RT : struct =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #4
0
 public static EitherAsync <L, Identity <B> > Sequence <L, A, B>(this Identity <A> ta, Func <A, EitherAsync <L, B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #5
0
 public static TryAsync <Identity <B> > Sequence <A, B>(this Identity <A> ta, Func <A, TryAsync <B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #6
0
 public static HashSet <Identity <B> > Sequence <A, B>(this Identity <A> ta, Func <A, HashSet <B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #7
0
 public static ValueTask <Identity <B> > Sequence <A, B>(this Identity <A> ta, Func <A, ValueTask <B> > f) =>
 ta.Map(f).Traverse(Prelude.identity);
Пример #8
0
 public static Validation <MonoidFail, Fail, Identity <B> > Sequence <MonoidFail, Fail, A, B>(this Identity <A> ta, Func <A, Validation <MonoidFail, Fail, B> > f)
     where MonoidFail : struct, Monoid <Fail>, Eq <Fail> =>
 ta.Map(f).Traverse(Prelude.identity);