zip<A, B> static method

Tuple2<A, B>? zip<A, B>(
  1. A? first,
  2. B? second
)

Implementation

static Tuple2<A, B>? zip<A, B>(A? first, B? second) =>
    first != null && second != null ? Tuple2(first, second) : null;