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.
func |
a function applied to value |
the mapped result |