Skip to content

Instantly share code, notes, and snippets.

@marceloazvedo
Created August 1, 2020 13:33
Show Gist options
  • Save marceloazvedo/d215ded75c78546fc16998565a38a9fc to your computer and use it in GitHub Desktop.
Save marceloazvedo/d215ded75c78546fc16998565a38a9fc to your computer and use it in GitHub Desktop.
Your reduce
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