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