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

getShowableOption

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

Create an instance of Showable for Option given an instance of Showable for A.

@example
import * as O from "./option.ts";

const Showable = O.getShowableOption({ show: (n: number) => n.toString() }); // Showable<Option<number>>

const result1 = Showable.show(O.some(1)); // "Some(1)"
const result2 = Showable.show(O.none); // "None"
function getShowableOption<A>({ show }: Showable<A>): Showable<Option<A>>;
§
getShowableOption<A>({ show }: Showable<A>): Showable<Option<A>>
[src]

§Type Parameters

§Parameters

§
{ show }: Showable<A>
[src]

§Return Type