premap
import { premap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/fn_either.ts";Map over the input value of a FnEither.
@example
import * as FE from "./fn_either.ts";
import { pipe } from "./fn.ts";
// This has type FnEither<[Date], never, number>
const computation = pipe(
FE.id<number>(),
FE.premap((d: Date) => d.valueOf()),
);
const result = computation(new Date(0)); // Right(0)