using System; using System.Collections.Generic; using System.Text; using UniRx.Operators; namespace UniRx { public static partial class Observable { public static IObservable Scan(this IObservable source, Func accumulator) { return new ScanObservable(source, accumulator); } public static IObservable Scan(this IObservable source, TAccumulate seed, Func accumulator) { return new ScanObservable(source, seed, accumulator); } public static IObservable Aggregate(this IObservable source, Func accumulator) { return new AggregateObservable(source, accumulator); } public static IObservable Aggregate(this IObservable source, TAccumulate seed, Func accumulator) { return new AggregateObservable(source, seed, accumulator); } public static IObservable Aggregate(this IObservable source, TAccumulate seed, Func accumulator, Func resultSelector) { return new AggregateObservable(source, seed, accumulator, resultSelector); } } }