What is the difference between `map()` and `flatMap()`?
Correct answer
map transforms, flatMap flattens nested streams
Explanation
`map()` transforms elements; `flatMap()` flattens nested structures into a single stream.
Update: Admin added a tag on this question
Topics
By Admin · · 43 views