-
Klaus Aehlig authored
This function allows to use 'IO a' objects in a safe way, using the 'try' function; the outcome is reported as a 'Result'. IOErrors are logged and the result is 'Bad', while in the case of no errors, a result-yielding function is applied to the value. Signed-off-by: Klaus Aehlig <aehlig@google.com> Reviewed-by: Michele Tartara <mtartara@google.com>
5badb3e7