mapErr<W extends Object> abstract method

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

Returns a new Result, mapping any Err value using the given transformation.

Implementation

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