zip<U extends Object> method
Zips self with another Option.
Implementation
Option<(T, U)> zip<U extends Object>(Option<U> other) {
if (v == null) {
return None;
} else {
if (other.isSome()) {
return Some((v!, other.unwrap()));
}
return None;
}
}