Skip to main content
Module

x/fun/record.ts>getShow

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function getShow
import { getShow } from "https://deno.land/x/fun@v.2.0.0-alpha.11/record.ts";

Given a Show for the inner values of a ReadonlyRecord, return an instance of Show for ReadonlyRecord.

Examples

Example 1

import * as R from "./record.ts";
import { ShowNumber } from "./number.ts";

const { show } = R.getShow(ShowNumber);

const result = show({ one: 1, two: 2, three: 3 });
// "{one: 1, two: 2, three: 3}"