예제 #1
0
 public X combine(Seq <X> elements)
 => Seq.foldl(combine, elements);
예제 #2
0
 /// <summary>
 /// Implements a left-fold over the container
 /// </summary>
 /// <typeparam name="Y">The type of the accumulated value</typeparam>
 /// <param name="f">The accumulator</param>
 /// <param name="y0">The seed value</param>
 /// <param name="container"></param>
 /// <returns></returns>
 public Y foldl <Y>(Func <Y, X, Y> f, Y y0, CX container)
 => Seq.foldl(f, y0, Seq.make(container.Stream()));
예제 #3
0
파일: Seq.inst.cs 프로젝트: 0xCM/Meta.Core
 public Y foldl <Y>(Func <Y, X, Y> f, Y y0, Seq <X> s)
 => Seq.foldl(f, y0, s);