Executes the receiver function safely, returning null if an exception occurs.
Return
The result of the function or null if an exception occurred.
Parameters
The input type for the function.
The output type of the function.
The input value for the function.