removing some comments

This commit is contained in:
Bence Eros
2015-06-15 12:33:38 +02:00
parent b116936ea5
commit a29d577f81
2 changed files with 0 additions and 5 deletions

View File

@@ -81,7 +81,6 @@ var myStream = Stream.from([new MyList, new MyList]);
elems = myStream
.flatMap(list => list.elems)
.toArray();
//.forEach(s => console.log(s));
myStream = myStream.takeWhile({name: "foo"});
myStream = myStream.dropWhile({name: "foo"});
@@ -137,7 +136,6 @@ var done: boolean = iter.done;
var optNum: Stream.Optional<number> = Stream.Optional.of(2);
optNum = Stream.Optional.ofNullable(null);
//optNum = Stream.Optional.empty();
var optStr: Stream.Optional<String> = optNum.filter(n => n % 2 == 0)
.map(n => "number" + n)

View File

@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare class Stream<T> {
// static make <T> (...elems: T[]): Stream<T>;
static from <T> (elems: T[]): Stream<T>;
static from(str: string): Stream<string>;
static of<T>(...elems: T[]): Stream<T>;
@@ -12,7 +11,6 @@ declare class Stream<T> {
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;
anyMatch(regexp: RegExp): boolean;
@@ -148,7 +146,6 @@ declare module Stream {
export class Optional<T> {
static of<T>(elem: T): Optional<T>;
static ofNullable<T>(elem: T): Optional<T>;
// static empty<T>(): Optional<T>;
filter(predicate: (elem: T) => boolean): Optional<T>;
map<U>(mapper: (elem: T) => U): Optional<U>;