method R.mapimport { R } from "https://deno.land/x/ahh@v0.10.0/src/result/mod.ts"; map<T, U, E extends Error>(res: Result<T, E>, f: (_: T) => U): Result<U, E>Calls f with res, and returns the result. Examples import { R } from "./mod.ts"; console.log(R.map(1, (i) => i + 1)); // 2 console.log(R.map(Error(), (i: number) => i + 1)); // Error() Type ParametersTUE extends ErrorParametersres: Result<T, E>f: (_: T) => UReturnsResult<U, E>