map
import { map } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/state.ts";Map over the covariant value A in State<E, A>.
@example
import * as S from "./state.ts";
import * as A from "./array.ts";
import { pipe } from "./fn.ts";
const work = pipe(
S.id<number>(),
S.map(n => A.range(n)),
);
const result1 = work(1); // [[0], 1]
const result2 = work(3); // [[0, 1, 2], 3]