1 个仓库
Transforming standard functions into operations that can act on containerized values.
Distinct from Functional Transformations: Focuses on lifting functions to work with monadic containers, distinct from general functional transformations.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Function Lifting. Refine with filters or upvote what's useful.
Returns 是一个 Python 函数式编程库,提供用于管理状态、错误处理和可选性的类型安全容器。它作为一个单子 (monadic) 容器库和类型安全错误处理框架,用 Result 和 Optional 容器替换传统的 try-catch 块和空值检查,从而将异常视为数据。 该项目的特色在于使用专门的 Mypy 静态分析插件来验证函数式流水线并模拟高阶类型。它提供了通过 IO 容器隔离副作用的机制,并提供了一个类型安全依赖注入框架,将依赖项的提供推迟到计算的最终执行阶段。 该库涵盖了广泛的函数式原语,包括柯里化、部分应用和声明式数据流水线的组合。它通过将协程包装在容器中来链式处理非阻塞操作,从而支持异步工作流管理,并包括用于资源生命周期管理和自定义容器代数定律验证的实用程序。
Provides utilities to transform standard functions into compatible operations for use within functional pipelines.