and<U extends Object> method

Option<U> and<U extends Object>(
  1. Option<U> optb
)
inherited

Returns None if the option is None, otherwise returns optb.

Implementation

Option<U> and<U extends Object>(Option<U> optb) {
  return isSome() ? optb : None<U>();
}