Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eitherway/lib/async/operators.ts>trip

Yet Another Option and Result Implementation - providing safe abstractions for fallible flows inspired by F# and Rust
Latest
function trip
Deprecated
Deprecated

(will be removed in 1.0.0) use Task instead

import { trip } from "https://deno.land/x/eitherway@0.10.0/lib/async/operators.ts";

Parameters

tripFn: (e: T) => Result<T2, E2> | PromiseLike<Result<T2, E2>>