The zipped optional of tuple.
The unzipped tuple of optionals.
import { some, none, unzip } from "./option.ts";
import { assertEquals } from "../deps.ts";
assertEquals(unzip(some([1, "hi"])), [
some(1),
some("hi"),
]);
assertEquals(unzip(none()), [
none(),
none(),
]);
Generated using TypeDoc
Unzips the optional of tuple into the tuple of optionals.