Applies partial function f
on each element; if the function is not
defined for the current input, it is filtered out
Applies f
on each element and flatten its result into the stream
flatMap
Map f
on each element and turn stream into a dictionary