示例#1
0
 public B SumMapRight <B>(Func <A, B> f, Monoid <B> m) => FoldRight((a, b) => m.Op(f(a), b), m.Id);
示例#2
0
 public B SumMapLeft <B>(Func <A, B> f, Monoid <B> m)
 {
     return(FoldLeft <B>((a, b) => m.Op(a, f(b)), m.Id));
 }
示例#3
0
 public B SumMapRight <B>(Func <A, B> f, Monoid <B> m)
 {
     return(FoldRight <B>((a, b) => m.Op(f(a), b), m.Id));
 }