import { fn } from "https://deno.land/x/ahh@v0.11.0/src/result/mod.ts";
Examples
Example 1
Example 1
import { default as R } from "./mod.ts";
console.log(R.fn(() => 1)); // 1
console.log(R.fn(() => { throw Error(); })); // Error()
Parameters
f: () => T