Returns a new result, mapping any success value using the given transformation and unwrapping the produced result.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
Parameters
transform
A closure that takes the success value of the instance.
Return Value
A Result
instance with the result of evaluating transform
as the new failure value if this instance represents a failure.