Skip to content

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

Merged
akarnokd merged 1 commit into
ReactiveX:1.xfrom
aballano:4035_zip_of_observable_array
Jun 20, 2016
Merged

1.x: Added zip function with Observable array.#4036
akarnokd merged 1 commit into
ReactiveX:1.xfrom
aballano:4035_zip_of_observable_array

Conversation

@aballano

Copy link
Copy Markdown

As discussed in #4035 with @akarnokd

* a function that, when applied to an item emitted by each of the source Observables, results in
* an item that will be emitted by the resulting Observable
* @return an Observable that emits the zipped results
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a>

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

👍

1 similar comment
@stevegury

Copy link
Copy Markdown
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