public static IPromise <int> Count <T>(IPromiseEnumerator <T> items, Func <T, int, IPromise <bool> > filter) { return(LongCountAlgorithm.LongCount(items, filter).Then(result => (int)result)); }
public static IPromise <int> Count <T>(IPromiseEnumerator <T> items) { return(LongCountAlgorithm.LongCount(items).Then(result => (int)result)); }