Skip to main content
Module

x/hkts/reader_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/reader_either.ts";

type

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