1 مستودع
Transforming a success-or-failure result into a simple presence-or-absence value.
Distinct from Option to Either Conversions: Distinct from Option to Either Conversions: moves from a detailed error type to a simple optional type.
Explore 1 awesome GitHub repository matching software engineering & architecture · Either to Option Conversions. Refine with filters or upvote what's useful.
fp-ts is a TypeScript library that brings pure functional programming patterns to the language through algebraic data types, type class abstractions, and composable combinators. It provides foundational data types like Option for optional values, Either for typed error handling, and Task for lazy asynchronous computations, all designed to make invalid states unrepresentable and side effects explicit. The library is built on category theory concepts, offering type classes such as Functor, Applicative, Monad, Semigroup, and Monoid with lawful instances for common data structures. The library di
Discards the error side of an Either, returning None for Left and Some for Right.