flatmap
import { flatmap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/identity.ts";Chain Identity computations together.
@example
import { flatmap, wrap } from "./identity.ts";
import { pipe } from "./fn.ts";
const identity = wrap(5);
const chained = pipe(
identity,
flatmap(n => wrap(n * 2))
);
console.log(chained); // 10