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

Right

import type { Right } from "https://raw.githubusercontent.com/baetheus/fun/main/either.ts";

The Right type represents the right side of an Either, typically used to hold successful computation results.

@example
import * as E from "./either.ts";

const successResult = E.right(42);
// { tag: "Right", right: 42 }
type Right<R> = {
tag: "Right";
right: R;
}
;

§Type Parameters

§Type

§
{
tag: "Right";
right: R;
}
[src]