Skip to content

Instantly share code, notes, and snippets.

@ova2
Created May 24, 2021 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ova2/1e83c7aa3b622f668d3d7a3851686987 to your computer and use it in GitHub Desktop.
Save ova2/1e83c7aa3b622f668d3d7a3851686987 to your computer and use it in GitHub Desktop.
Flux<String> cars = Flux.just("Fiat", "Audi", "BMW");
Flux<String> years = Flux.just("2009", "2018", "2015");
Flux.zip(cars, years)
.map(t -> t.getT1() + " " + t.getT2())
.subscribe(System.out::println);
// Output
Fiat 2009
Audi 2018
BMW 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment