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

getShowableDatum

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

Create a Showable instance for Datum given a Showable for the inner type.

@example
import { getShowableDatum, replete, initial } from "./datum.ts";

const showable = getShowableDatum({ show: (n: number) => n.toString() });
console.log(showable.show(replete(42))); // "Replete(42)"
console.log(showable.show(initial)); // "Initial"
function getShowableDatum<A>({ show }: Showable<A>): Showable<Datum<A>>;
§
getShowableDatum<A>({ show }: Showable<A>): Showable<Datum<A>>
[src]

§Type Parameters

§Parameters

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

§Return Type