import { Result } from "https://deno.land/x/eitherway@0.10.0/mod.ts";
const { from } = Result;
Use this to lift the result of an infallible function into a Result
context.
In case, the supplied function panics, an exception is thrown, wrapping the original exception.
Parameters
fn: () => T