The lambda expression used in a call to map()
can return objects of any
desired type. So, while the previous example showed mapping strings to strings,
here we map integers to floating-point numbers representing the reciprocal of
the corresponding integer.
You can learn more about this in:
Tags: