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

Usage

import * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/mappable.ts";

Mappable is a structure that allows a function to be applied inside of the associated concrete structure.

§Functions

createBindTo

Create a bindTo function from a structure with an instance of Mappable. A bindTo function takes the inner value of the structure and maps it to the value of a struct with the given name. It is useful for lifting the value such that it can then be used with a bind function, effectively allowing for Do-like notation in typescript.

§Interfaces

Mappable

A Mappable structure has the method map.

§Type Aliases

BindTo

The return type for the createBindTo function on Mappable. Useful to reduce type inference in documentation.