コード例 #1
0
 /// <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);
 });
コード例 #2
0
 public static ValueTask <B> map <A, B>(ValueTask <A> self, Func <A, B> map) =>
 self.Map(map);
コード例 #3
0
 public static ValueTask <ValueTask <B> > Sequence <A, B>(this ValueTask <A> ta, Func <A, ValueTask <B> > f) =>
 ta.Map(f).Sequence();