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