map
Description:
Maps the value to another value by applying the given function to the value.
If this result holds or the function throws an exception, the returned result holds the exception.
Parameters:
func |
a function applied to value |
Returns:
the mapped result |