inspect abstract method

Result<S, F> inspect(
  1. void fn(
    1. S ok
    )
)

If Ok, Calls the provided closure with the ok value, else does nothing.

Implementation

Result<S, F> inspect(void Function(S ok) fn);