count<E> static method

int count<E>(
  1. Iterable<Maybe<E>>? maybeList
)

Implementation

static int count<E>(Iterable<Maybe<E>>? maybeList) {
  return (maybeList == null)
      ? 0
      : maybeList.where((v) => !v._isNothing).length;
}