Created
August 1, 2020 13:33
-
-
Save marceloazvedo/d215ded75c78546fc16998565a38a9fc to your computer and use it in GitHub Desktop.
Your reduce
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
List<GenreMovies> moviesSeparatedByGenreUsingStream = movies.stream() | |
.reduce(new ArrayList<>(), | |
MoviesSelectors.selectAndSeparate(genres), | |
MoviesSelectors.matchList()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment