Combine two Options into a single Option of a tuple. If either is none, the result is none.
none
const pair = zip(fromNullable(user.first), fromNullable(user.last)) // some(["Alice", "Smith"]) or none Copy
const pair = zip(fromNullable(user.first), fromNullable(user.last)) // some(["Alice", "Smith"]) or none
Combine two Options into a single Option of a tuple. If either is none, the result is
none.