Skip to main content
Module

x/fun/mod.ts>fn.URI

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

Specifies Fn as a Higher Kinded Type, with covariant parameter A corresponding to the 0th index of any Substitutions and a contravariant parameter D corresponding to the 0th index of any Substititions. The Fn URI is unique in that it constrains the Fn type to taking a single argument for the purposes of type substitution while the implementations of Fn combinators such as map, chain, etc are mostly variadic (multiple arguments).

Properties

readonly
kind: Fn<In<this, 0>, Out<this, 0>>