import { async_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { fail } = async_either;
Construct an AsyncEither<B, A> from a value B.
Examples
Example 1
Example 1
import * as AE from "./async_either.ts";
const value = AE.fail("Error!");
const result = await value(); // Left("Error!");
Parameters
b: B