Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

both

import { both } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/these.ts";

Create a These that represents a partial success with both values.

@example
import { both } from "./these.ts";

const partial = both("Warning", 42);
console.log(partial); // { tag: "Both", left: "Warning", right: 42 }
function both<A, B>(left: B, right: A): These<B, A>;
§
both<A, B>(left: B, right: A): These<B, A>
[src]

§Type Parameters

§Parameters

§
left: B
[src]
§
right: A
[src]

§Return Type