Advertisement
Guest User

2ch.hk scala thread

a guest
Nov 10th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.15 KB | None | 0 0
  1. List<Product> products = orders.stream()
  2.         .map(order -> order.getProducts())
  3.         .flatMap(List::stream)
  4.         .collect(Collectors.toList());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement