public static IPromise <decimal> Max(this IPromiseEnumerable <decimal> items)
 {
     return(items.First().Then(first => items.Aggregate((prev, current) => Math.Max(prev, current), first)));
 }
 public static IPromise <int> Sum(this IPromiseEnumerable <int> items)
 {
     return(items.Aggregate((prev, current) => prev + current, (int)0));
 }
 public static IPromise <float> Min(this IPromiseEnumerable <float> items)
 {
     return(items.First().Then(first => items.Aggregate((prev, current) => Math.Min(prev, current), first)));
 }