Exemple #1
0
 public static Port <B> Select <A, B>(this Port <A> m, Func <A, B> f) =>
 m.Bind(a => f(a).Port());
Exemple #2
0
 public static Port <C> SelectMany <A, B, C>(this Port <A> m, Func <A, Port <B> > f, Func <A, B, C> project) =>
 m.Bind(a => f(a).Bind(b => project(a, b).Port()));