/// <summary> /// Impure iteration of the bound value in the structure /// </summary> /// <returns> /// Returns the original unmodified structure /// </returns> public static ValueTask <A> Do <A>(this ValueTask <A> ma, Action <A> f) => ma.Map(x => { f(x); return(x); });
public static ValueTask <B> map <A, B>(ValueTask <A> self, Func <A, B> map) => self.Map(map);
public static ValueTask <ValueTask <B> > Sequence <A, B>(this ValueTask <A> ta, Func <A, ValueTask <B> > f) => ta.Map(f).Sequence();