isSomeAnd method

Future<bool> isSomeAnd(
  1. FutureOr<bool> f(
    1. T
    )
)

Implementation

Future<bool> isSomeAnd(FutureOr<bool> Function(T) f) {
  return then((option) async => option.isSome() && await f(option.v as T));
}