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

Option

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

The Option represents a type A that may or may not exist. It's the functional progamming equivalent of A | undefined | null.

type Option<A> = Some<A> | None;

§Type Parameters

§Type