cifa
12/14/2018, 10:18 AMResult
- the new equivalent of Try
in 1.3, it defines both map
and mapCatching
and the docs say
- map
* Note, that an exception thrown by [transform] function is rethrown by this function.
* See [mapCatching] for an alternative that encapsulates exceptions.
- mapCatching
* Any exception thrown by [transform] function is caught, encapsulated as a failure and returned by this function.
* See [map] for an alternative that rethrows exceptions.