Result
Companion object for Result types. Provides utility methods for creating and manipulating Result types. Includes methods for success, failure, fromTry, fromOption, sequence, traverse, and combine. These methods allow users to easily create and handle Result types, providing a consistent and type-safe way to work with results in the LLM4S. Provides a clear and concise API for error handling and result manipulation. Provides methods for creating success and failure results, converting from Try and Option types, sequencing and traversing lists of results, and combining two results into a tuple. This object is designed to be extensible for future requirements, allowing users to add additional utility methods as needed. It provides a consistent and type-safe way to handle results and errors in the LLM4S.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Result.type