map

fun <T> map(transform: (Value) -> T): Result<Error, T>

Transform a successful result.

If a computation was a Success, transform the data. Otherwise keep the Failure.

Return

The transformed data of a Success. Keeps the failure otherwise.

Parameters

transform

Provides the transformed data