A multiplatform Result monad for modeling success or failure operations. The binding keyword allows multiple calls that each return a Result to be chained imperatively. When inside a binding block, the .bind() function is accessible on any Result. Each call to bind will attempt to unwrap the Result and store its value, returning early if any Result is an Err.
Features
- Result<V, E> is a monad for modelling success (Ok) or failure (Err) operations
- The Result monad has two subtypes
- Mappings are available on the wiki to assist those with experience using the Result type in other languages
- Binding (Monad Comprehension)
- Documentation available
- Examples available
Categories
LibrariesLicense
ISC LicenseFollow kotlin-result
Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit
Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of kotlin-result!