Skip to main content
Module

x/fun/mod.ts>map.map

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface map.map
implements Kind
Re-export
import { type map } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = map;

Properties

readonly
kind: ReadonlyMap<Out<this, 1>, Out<this, 0>>

Properties

readonly
kind: ReadonlyMap<B, Out<this, 0>>
type alias map.map
Re-export
import { type map } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = map;
definition: U extends ReadonlyMap<infer _, infer A> ? A : never
definition: U extends ReadonlyMap<infer B, infer _> ? B : never
variable map.map
Re-export
import { map } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = map;
function map.map
Re-export
import { map } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = map;

Parameters

fai: (a: A) => I

Returns

<B>(ta: ReadonlyMap<B, A>) => ReadonlyMap<B, I>