andThen<W> abstract method

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

If Ok, Returns a new Result by passing the Ok value to the provided function.

Implementation

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