文件名称:OSlash:Python 中的函子、应用程序和单子
文件大小:66KB
文件格式:ZIP
更新时间:2024-08-13 14:41:26
python monads functors oslash monad-tutorial
Python 中的函子、应用程序和单子 OSlash (Ø) 是一个用于在 Python 3.8+ 中进行函数式编程的库。 它试图重新实现一些代码 在 Python 3.8 中。 OSlash 通过在类中对相关函数进行分组来统一函数式和面向对象的范式。 然而,对象从不用于存储值或可变数据,并且数据只存在于函数闭包中。 OSlash 旨在成为一个教程。 要在生产环境中使用 Python 进行实际的函数式编程,您应该使用 。 安装 > pip3 install oslash 该项目目前包含以下实现: 抽象基类 ,用于可以映射的东西 ,用于可调用的东西 Monoid ,用于关联的东西 , 用于 monadic 的东西 还有一些 Monad 身份,最简单形式的盒装物品 ,对于可选的东西 任一 (Right | Left) ,对于可能的失败 List ,纯粹功能性的东西列表 ,用于
【文件预览】:
OSlash-master
----setup.py(1KB)
----.gitignore(150B)
----requirements.txt(17B)
----pyproject.toml(280B)
----MANIFEST.in(49B)
----LICENSE(1KB)
----setup.cfg(328B)
----.github()
--------workflows()
----examples()
--------hello.py(371B)
--------hello2.py(463B)
--------issue.py(115B)
--------hello3.py(389B)
----notebooks()
--------Reader.ipynb(7KB)
--------README.md(229B)
----README.md(4KB)
----oslash()
--------cont.py(2KB)
--------writer.py(3KB)
--------ioaction.py(7KB)
--------__init__.py(606B)
--------observable.py(3KB)
--------monadic.py(597B)
--------util()
--------reader.py(4KB)
--------maybe.py(6KB)
--------list.py(9KB)
--------_version.py(18KB)
--------state.py(2KB)
--------typing()
--------do.py(6KB)
--------identity.py(2KB)
--------either.py(4KB)
----tests()
--------test_cont.py(4KB)
--------test_identity.py(3KB)
--------test_reader.py(4KB)
--------test_writer.py(2KB)
--------__init__.py(0B)
--------test_either.py(2KB)
--------test_do.py(2KB)
--------test_state.py(3KB)
--------test_numerals.py(649B)
--------test_util.py(904B)
--------test_maybe.py(7KB)
--------test_ioaction.py(1KB)
--------test_monad.py(519B)
--------test_observable.py(3KB)
--------test_list.py(7KB)
----versioneer.py(67KB)
----.pylintrc(155B)
----.gitattributes(32B)
----.flake8(92B)