adding Stream.iterate() constructor

This commit is contained in:
Bence Eros committed 2015-06-14 01:17:49 +02:00
1 parent c5432f4533
commit a8871c9dfa
2 files changed
+3

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ declare class Stream<T> {
static range (startInclusive: number, endExclusive: number): Stream<number>;
static rangeClosed (startInclusive: number, endInclusive: number): Stream<number>;
static generate <T> (supplier: Stream.Supplier<T>): Stream<T>;
static iterate<T>(seed: T, fn: Stream.Function<T, T>): Stream<T>;
// static empty<T>(): Stream<T>;
anyMatch(predicate: Stream.Predicate<T>): boolean;