import { R } from "https://deno.land/x/ahh@v0.10.0/src/result/mod.ts";
Calls f
with res
, and returns the result.
Examples
import { R } from "./mod.ts";
console.log(R.map(1, (_) => Error("new"))); // 1
console.log(R.map(Error(), (_) => Error("new"))); // Error("new")