zipWith<U extends Object, R extends Object> method

Option<R> zipWith<U extends Object, R extends Object>(
  1. Option<U> other,
  2. R f(
    1. T p1,
    2. U p2
    )
)

Implementation

@pragma("vm:prefer-inline")
Option<R> zipWith<U extends Object, R extends Object>(
    Option<U> other, R Function(T p1, U p2) f) {
  if (other.isSome()) {
    return Some(f(v, other.unwrap()));
  }
  return None;
}