Skip to content

Commit

Permalink
feat(Stream): implement xs.of()
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Mar 25, 2016
1 parent 6298150 commit f86fd49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export class Stream<T> implements Observer<T> {
return new Stream<T>(new FromProducer(array));
}

static of<T>(...items: Array<T>): Stream<T> {
return Stream.from(items);
}

static merge<T>(...streams: Array<Stream<T>>): Stream<T> {
return new Stream<T>(new MergeProducer(streams));
}
Expand Down

0 comments on commit f86fd49

Please sign in to comment.