import { Result } from "https://deno.land/x/eitherway@0.10.0/mod.ts";
const { lift } = Result;
Use this to lift a function into a Result
context, by composing
the wrapped function with a Result
constructor.
If no constructor is provided, Ok
is used as default.
This is useful for integrating 3rd party code without the need to manually wrap it.