map

Transforms the data of Results if they are Result.Successes.

Return

The new Result.

Author

Jan Müller

Parameters

<receiver>
The source Result.
T
The source type.
transformation
The transformation operation.
U
The target type.
suspend fun <T : Any, U : Any> Result<T>.map(transformation: SuspendFunction1<T, U>): Result<U>