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

Mappable

import type { Mappable } from "https://raw.githubusercontent.com/baetheus/fun/main/mappable.ts";

A Mappable structure has the method map.

interface Mappable <U extends Kind> extends Hold<U> {
readonly map: <A, I>(fai: (value: A) => I) => <B = never, C = never, D = unknown, E = unknown>(ta: $<U, [A, B, C], [D], [E]>) => $<U, [I, B, C], [D], [E]>;
}

§Type Parameters

§
U extends Kind
[src]

§Extends

§Properties

§
readonly map: <A, I>(fai: (value: A) => I) => <B = never, C = never, D = unknown, E = unknown>(ta: $<U, [A, B, C], [D], [E]>) => $<U, [I, B, C], [D], [E]>
[src]