public static Eff <RT, Either <L, B> > Sequence <RT, L, A, B>(this Either <L, A> ta, Func <A, Eff <RT, B> > f) where RT : struct => ta.Map(f).Sequence();
public static Option <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, Option <B> > f) => ta.Map(f).Sequence();
public static Try <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, Try <B> > f) => ta.Map(f).Sequence();
public static Validation <Fail, Either <Fail, B> > Sequence <Fail, A, B>(this Either <Fail, A> ta, Func <A, Validation <Fail, B> > f) => ta.Map(f).Sequence();
public static Either <Ret, L> map <R, L, Ret>(Either <R, L> either, Func <R, Ret> mapper) => either.Map(mapper);
public static EitherAsync <L, Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, EitherAsync <L, B> > f) => ta.Map(f).Sequence();
public static Que <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, Que <B> > f) => ta.Map(f).Traverse(Prelude.identity);
public static Either <L, Ret> map <L, R, Ret>(Either <L, R> either, Func <R, Ret> mapper) => either.Map(mapper);
public static HashSet <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, HashSet <B> > f) => ta.Map(f).Sequence();
public static IEnumerable <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ma, Func <A, IEnumerable <B> > f) => ma.Map(f).Sequence();
public static ValueTask <Either <L, B> > Sequence <L, A, B>(this Either <L, A> ta, Func <A, ValueTask <B> > f) => ta.Map(f).Sequence();
public static Validation <MonoidFail, Fail, Either <Fail, B> > Sequence <MonoidFail, Fail, A, B>(this Either <Fail, A> ta, Func <A, Validation <MonoidFail, Fail, B> > f) where MonoidFail : struct, Monoid <Fail>, Eq <Fail> => ta.Map(f).Traverse(Prelude.identity);
/// <summary> /// Partial application map /// </summary> /// <remarks>TODO: Better documentation of this function</remarks> public static Either <L, Func <T2, Func <T3, R> > > map <L, T1, T2, T3, R>(Either <L, T1> either, Func <T1, T2, T3, R> func) => either.Map(func);
/// <summary> /// Bi-maps the value in the Either if it's in a Right state /// </summary> /// <typeparam name="L">Left</typeparam> /// <typeparam name="R">Right</typeparam> /// <typeparam name="LRet">Left return</typeparam> /// <typeparam name="RRet">Right return</typeparam> /// <param name="self">Either to map</param> /// <param name="Right">Right map function</param> /// <param name="Left">Left map function</param> /// <returns>Mapped Either</returns> public static Either <LRet, RRet> map <L, R, LRet, RRet>(Either <L, R> either, Func <R, RRet> Right, Func <L, LRet> Left) => either.Map(Right, Left);
public static Aff <RT, Either <L, B> > Sequence <RT, L, A, B>(this Either <L, A> ta, Func <A, Aff <RT, B> > f) where RT : struct, HasCancel <RT> => ta.Map(f).Sequence();