Created
May 24, 2021 21:20
-
-
Save ova2/1e83c7aa3b622f668d3d7a3851686987 to your computer and use it in GitHub Desktop.
This file contains 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
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