map
import { map } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/free.ts";Apply a function to the value in a Free structure.
@example
import { map, node } from "./free.ts";
import { pipe } from "./fn.ts";
const free = node(5);
const doubled = pipe(
free,
map(n => n * 2)
);
console.log(doubled); // { tag: "Node", value: 10 }