Core concept
List even = list.stream()
.filter(n -> n % 2 == 0)
.collect(Collectors.toList()); Advertisement
How it works
Not for state mutation. Not for exceptions.
Advertisement
Trade-offs + gotchas
Collection processing. Data transformation.