zipWith<U, V> method
Zips this Option
with another Option
using the given function.
Returns:
See also:
Rust: Option::zip_with()
Implementation
Option<V> zipWith<U, V>(Option<U> other, V Function(T, U) zipFn) {
return switch ((this, other)) {
(Some(v: T a), Some(v: U b)) => Some(zipFn(a, b)),
_ => None(),
};
}