import { fn_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { fromPredicate } = fn_either;
Create a FnEither from a Predicate or a Refinement. If the Predicate or Refinement returns true then the FnEither returns Right, otherwise it returns Left.
Type Parameters
B extends A