示例#1
0
 public B SumMapLeft <B>(Func <A, B> f, Semigroup <B> m) =>
 tail.FoldLeft <B>((a, b) => m.Op(a, f(b)), f(head));
示例#2
0
 public B SumMapRight <B>(Func <A, B> f, Semigroup <B> m) =>
 tail.FoldRight <B>((a, b) => m.Op(f(a), b), f(head));