map<W> abstract method

Result<W, F> map<W>(
  1. W fn(
    1. S ok
    )
)

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

Implementation

Result<W, F> map<W>(W Function(S ok) fn);