Closed diogob closed 2 years ago
Oftentimes is useful to transform errors produced in a domain function. This PR introduces the mapError combinator, very similar to the existing map but operates on the error side of the Result type.
mapError
map
Result
Just like mapLeft but for domain functions.
Purpose
Oftentimes is useful to transform errors produced in a domain function. This PR introduces the
mapError
combinator, very similar to the existingmap
but operates on the error side of theResult
type.Technical details
Just like mapLeft but for domain functions.