import { state } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { of } = state;
Construct a State<E, A> from a static value A.
Examples
Example 1
Example 1
import * as S from "./state.ts";
const state = S.of(1);
const result = state(null); // [1, null]
Parameters
a: A