ifSome abstract method

Result<Option<T>> ifSome(
  1. @noFuturesAllowed void noFuturesAllowed(
    1. Some<T> some
    )
)

Performs a side-effect with the contained value if this is a Some.

Implementation

Result<Option<T>> ifSome(
  @noFuturesAllowed void Function(Some<T> some) noFuturesAllowed,
);