mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
adding Stream.iterate() constructor
This commit is contained in:
1 parent
c5432f4533
commit
a8871c9dfa
2 files changed
+3
No files matched your search
@@ -12,6 +12,8 @@ Stream.generate(function() {
|
||||
});
|
||||
Stream.generate(() => 1);
|
||||
|
||||
numStream = Stream.iterate(1, (n) => n * 2);
|
||||
|
||||
var comparator = (s1, s2) => 0;
|
||||
|
||||
numStream = numStream.filter(n => n % 2 == 0);
|
||||
|
||||
Reference in new issue
Block a user