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

state

import { state } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/state.ts";

Construct a trivial State<E, A> from values E and A.

@example
import * as S from "./state.ts";

const state = S.state(1, 2);

const result = state(10); // [2, 1]
function state<E, A>(a: A, e: E): State<E, A>;
§
state<E, A>(a: A, e: E): State<E, A>
[src]

§Type Parameters

§Parameters

§Return Type