Glossary: Java Beyond the Basics
flatMap, reduce
Also written: flatMap, reduce
flatMap turns each element into a stream and joins them all into one stream; reduce(start, operation) combines all elements into one value.
Glossary: Java Beyond the Basics
Also written: flatMap, reduce
flatMap turns each element into a stream and joins them all into one stream; reduce(start, operation) combines all elements into one value.