Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/failable.ts>createTryAll

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function createTryAll
import { createTryAll } from "https://deno.land/x/fun@v2.0.0/failable.ts";

Create a tryAll function from an instance of Failable. The tryAll function allows the trying any number of Failable structures in order until a non-failed one is found.

Parameters

unnamed 0: Failable<U>

Returns

<A, B, C, D, E>(...uas: NonEmptyArray<$<U, [A, B, C], [D], [E]>>) => $<U, [A, B, C], [D], [E]>