isSome<T> function

bool isSome<T>(
  1. Option<T> option
)

Returns true if the Option is a Some.

expect(isSome(some()), true);
expect(isSome(none()), false);

Implementation

bool isSome<T>(Option<T> option) => option._isSome;