and<U> method

Maybe<U>? and<U>(
  1. Maybe<U>? other
)

Returns None if the this is None, otherwise returns other

Implementation

Maybe<U> and<U>(Maybe<U> other) {
  if (this == null) return None();
  return other;
}