flatMapError<W extends Object> abstract method

Result<S, W> flatMapError<W extends Object>(
  1. Result<S, W> fn(
    1. F error
    )
)

Returns a new Result, mapping any Error value using the given transformation and unwrapping the produced Result.

Implementation

Result<S, W> flatMapError<W extends Object>(
  Result<S, W> Function(F error) fn,
);