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