gets
import { gets } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/state.ts";Construct a State<E, A> from a function E => A.
@example
import * as S from "./state.ts";
const length = S.gets((s: string) => s.length);
const result = length("Hello World"); // [11, "Hello World"]