Skip to main content
Module

x/hkts/either.ts>tryCatch

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable tryCatch
import { tryCatch } from "https://deno.land/x/hkts@v0.0.52/either.ts";

type

<E, A>(f: Lazy<A>, onError: (e: unknown) => E) => Either<E, A>