Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.x: Added zip function with Observable array. #4036

Merged
merged 1 commit into from
Jun 20, 2016
Merged

1.x: Added zip function with Observable array. #4036

merged 1 commit into from
Jun 20, 2016

Conversation

aballano
Copy link

As discussed in #4035 with @akarnokd

* @return an Observable that emits the zipped results
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a>
*/
public static <R> Observable<R> zip(Observable<?>[] ws, FuncN<? extends R> zipFunction) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add:

     * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical
     *        with the release number)
     */
    @Experimental

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done :)

@akarnokd
Copy link
Member

Thanks! Almost forgot, please also add a unit test that verifies this overload works with 0, 1, or a couple of sources. (You can add a unit test that, for example, loops from 0 to 31, generates an array with that many simple sources and checks if all source values actually zipped into the final value.)

@aballano
Copy link
Author

@akarnokd Sorry for the delay, I just added tests for 0, 1 and multiple array sizes, let me know if that's ok.

@akarnokd
Copy link
Member

👍

1 similar comment
@stevegury
Copy link
Member

👍

@akarnokd akarnokd merged commit b8bccd9 into ReactiveX:1.x Jun 20, 2016
@aballano aballano deleted the 4035_zip_of_observable_array branch June 21, 2016 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants