Skip to content

Instantly share code, notes, and snippets.

@Exerosis
Created March 16, 2018 06:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Exerosis/99b298de98fc811d4d0459418407c201 to your computer and use it in GitHub Desktop.
public static <Up, From, To> ObservableTransformer<Up, To> subingZip(
Observable<From> source,
BiFunction<Up, From, To> combiner
) {
return upstream -> upstream.map(up -> {
From from = source.blockingFirst();
return combiner.apply(up, from);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment