map, flatMap, and mapTo

Report a typo

Match these operations and the most suitable descriptions.

Match the items from left and right columns
map
mapToInt
flatMap
mapToObj
transforms each element of a stream into another stream and concatenates all streams into one
transforms a stream of primitive values to a generic stream
transforms stream's elements into others (any type)
transforms stream's elements into primitive integers
___

Create a free account to access the full topic