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

left

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

Create a These that represents a complete failure.

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

const failure = left("Error occurred");
console.log(failure); // { tag: "Left", left: "Error occurred" }
function left<A = never, B = never>(left: B): These<B, A>;
§
left<A = never, B = never>(left: B): These<B, A>
[src]

§Type Parameters

§
A = never
[src]
§
B = never
[src]

§Parameters

§
left: B
[src]

§Return Type