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

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

ISC License

Follow kotlin-result

kotlin-result Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of kotlin-result!

Additional Project Details

Programming Language

Kotlin

Related Categories

Kotlin Libraries

Registered

2024-02-02