扁平化流flatMap

List<String> words = Arrays.asList("Hello", "World"); List<Integer> wordLengths = words.stream() .map(String::length) .collect(toList()); System.out.pri
相關文章
相關標籤/搜索