Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/record.ts>getShowableRecord

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function getShowableRecord
import { getShowableRecord } from "https://deno.land/x/fun@v2.0.0/record.ts";

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

Examples

Example 1

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

const { show } = R.getShowableRecord(ShowableNumber);

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