Add zip(iterable, selector) to RxScala#1247
Merged
benjchristensen merged 2 commits intoReactiveX:masterfrom May 27, 2014
Merged
Add zip(iterable, selector) to RxScala#1247benjchristensen merged 2 commits intoReactiveX:masterfrom
benjchristensen merged 2 commits intoReactiveX:masterfrom
Conversation
…ndex; update CompletenessTest.scala
|
RxJava-pull-requests #1147 SUCCESS |
Contributor
|
For zipping with an Observable, we have def zip[U](that: Observable[U]): Observable[(T, U)]
def zipWith[U, R](that: Observable[U], selector: (T,U) => R): Observable[R]So to be consistent, the signatures for zipping with an Iterable should be: def zip[U](that: Iterable[U]): Observable[(T, U)]
def zipWith[U, R](that: Iterable[U], selector: (T,U) => R): Observable[R] |
Contributor
|
And you could add a good and bad example to RxScalaDemo: Bad zips an Observable.interval with an infinite Observable (and thus the same happens as with the previous zip version), and good zips Observable.interval with an infinite Iterable. |
Contributor
|
Agreed. |
Member
|
I'll wait until a go ahead to merge this as it seems there are additions to make. |
Member
Author
|
Already updated. |
|
RxJava-pull-requests #1151 SUCCESS |
Contributor
|
We should wait with this until #1253 is fixed. |
Member
|
Is this now ready to merge since #1253 is merged? |
Contributor
|
Yes, it delegates to the Java one. |
benjchristensen
added a commit
that referenced
this pull request
May 27, 2014
Merge pull request #1247
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
zip(iterable, selector)to RxScalazip(iterable, selector)to reimplementzipWithIndexto resolve the issue mentioned in Fix bug inzipWithIndexand setzip(that, selector)public in RxScala #1226/cc @samuelgruetter