标签: java functional-programming java-8
基本上,我有这段代码:
final List<Article> articles = new ArrayList<>(); feeds.forEach(feed -> articles.addAll(feed.getArticles())); return articles;
有没有办法让它更具Java 8功能?要消除附加变量并将整个块转换为单个return语句?