zip<U> method

  1. @override
Option<(T, U)> zip<U>(
  1. Option<U> other
)
override

Zips self with another Option.

Implementation

@override
Option<(T, U)> zip<U>(Option<U> other) {
  if (other.isSome()) {
    return Some((v, other.unwrap()));
  }
  return None;
}