import { zip } from "https://deno.land/x/ahh@v0.14.0/src/option.ts";
Returns the values of option
and other
as a tuple if both are
Some
s.
Examples
Example 1
Example 1
import { assert, assertArrayIncludes } from "../test_deps.ts";
import O from "./option.ts";
const zipped = O.zip(2, "hello");
assert(O.isSome(zipped));
assertArrayIncludes(zipped, [2, "hello"]);