import { type state } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { state } = state;
Specifies State as a Higher Kinded Type, with covariant parameter A in the 0th index of any substitutions and invariant parameter E in the 0th parameter of any substitutions.
Properties
readonly
kind: State<InOut<this, 1>, Out<this, 0>>import { type state } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { state } = state;
The State<E, A> type represents the core State structure. The input/output variable E is invariant, and the output variable A is covariant.
import { state } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { state } = state;
The canonical implementation of Flatmappable for State. It contains the methods wrap, apply, map, join, and flatmap.
import { state } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { state } = state;