import { fromPredicate } from "https://deno.land/x/fun@v2.0.0-alpha.12/fn_either.ts";
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
Parameters
refinement: Refinement<A, B>