Skip to content

Create an Observable that emits each char in the source String.#5

Merged
abersnaze merged 3 commits intoReactiveX:0.xfrom
lucaslabs:observable_from_string
Nov 18, 2014
Merged

Create an Observable that emits each char in the source String.#5
abersnaze merged 3 commits intoReactiveX:0.xfrom
lucaslabs:observable_from_string

Conversation

@lucaslabs
Copy link
Contributor

Motivation:

  • RxJS has this from feature and it's simple awesome, so, why not included it :)

Example

StringObservable.from("foo").subscribe(new StringPrinterObserver());

Output:

onNext : f
onNext : o
onNext : o
onCompleted

abersnaze and others added 2 commits November 17, 2014 15:28
…match byLine.

removed the `Line` class because can be better done with `zip(Observable.range(0, MAX_INT), byLine(src), func2)`
A few changes to make it mesh better.
abersnaze added a commit that referenced this pull request Nov 18, 2014
Create an Observable that emits each char in the source String.
@abersnaze abersnaze merged commit e7eaede into ReactiveX:0.x Nov 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants