xor<T extends Object> method

Option<T> xor<T extends Object>(
  1. Option<T> other
)

Implementation

Option<T> xor<T extends Object>(Option<T> other) {
  if (other.isSome()) {
    return other;
  }
  return None;
}