If a value is present, invokes the given function with the value.
Example:
Optional.of<string> ("hello").ifPresent ((v) => { print ("%s\n", v); });
the function to invoke.