Skip to content

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

Closed
lucaslabs wants to merge 1 commit intoReactiveX:1.xfrom
lucaslabs:observable_from_string
Closed

Create an Observable that emits each char in the source String.#1888
lucaslabs wants to merge 1 commit intoReactiveX:1.xfrom
lucaslabs:observable_from_string

Conversation

@lucaslabs
Copy link
Copy Markdown

Motivation:

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

Example

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

Output:

onNext : f
onNext : o
onNext : o
onCompleted

@abersnaze
Copy link
Copy Markdown
Contributor

Probably better suited to the https://github.com/ReactiveX/RxJavaString project.

@lucaslabs
Copy link
Copy Markdown
Author

@abersnaze agreed! Will create a PR on the RxJavaString project.

@lucaslabs
Copy link
Copy Markdown
Author

Closing this PR in favor of the one generated on RxJavaString: ReactiveX/RxJavaString#5

@lucaslabs lucaslabs closed this Nov 17, 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