ifSome abstract method

Result<Option<T>> ifSome(
  1. @noFutures void noFutures(
    1. Option<T> self,
    2. Some<T> some
    )
)

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

Implementation

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