1 repository
Modifying functions to accept containerized inputs to enable seamless monadic composition.
Distinct from Container Context Binding: Focuses on adapting a function's input type to match its output container, whereas Container Context Binding is the general act of chaining.
Explore 1 awesome GitHub repository matching software engineering & architecture · Function Interface Adaptation. Refine with filters or upvote what's useful.
Returns is a functional programming library for Python that provides type-safe containers for managing state, error handling, and optionality. It serves as a monadic container library and a type-safe error handling framework, replacing traditional try-catch blocks and null checks with Result and Optional containers to treat exceptions as data. The project is distinguished by its use of a specialized Mypy static analysis plugin to validate functional pipelines and emulate higher kinded types. It provides mechanisms for isolating side effects through IO containers and offers a framework for typ
Adapts functions that return containers to accept container inputs, enabling declarative functional composition.