monad:monad-功能库

时间:2021-05-16 23:17:07
【文件属性】:
文件名称:monad:monad-功能库
文件大小:47KB
文件格式:ZIP
更新时间:2021-05-16 23:17:07
Python monad-一个功能强大的python包 笔记 该项目已被Hymn( )取代。 受Python语法的限制,无法完全实现do表示法,最接近的是生成器函数上的do装饰器,使用yield as <- ,感觉就像黑魔法。 这就是为什么我停止在Python中使用它,并在几年前用Hy( )进行了完全重写的原因。 作为Lisp或他们所说的Homoiconic Python ,Hy具有最灵活的语法(或缺乏语法) :grinning_face_with_smiling_eyes: ),有了它,我终于可以编写do表示法了,检查一下(为了增加乐趣,这里展示了一个Lazy monad,我们永远无法拥有使用纯Python编写thunk的简洁方法): => ( import [hymn.types.lazy [force]]) => ( require [hymn.types.lazy [lazy]]) => ; ; lazy computation impleme
【文件预览】:
monad-master
----.gitignore(194B)
----setup.cfg(104B)
----requirements()
--------test.txt(39B)
--------doc.txt(7B)
----README.rst(4KB)
----tests()
--------test_lazysequence.py(1KB)
--------test_monad.py(4KB)
--------test_null.py(318B)
--------test_list.py(5KB)
--------test_context_manager.py(1KB)
--------test_ord.py(1KB)
--------test_applicative.py(1011B)
--------test_functor.py(1KB)
--------test_either.py(7KB)
--------test_utils.py(2KB)
--------__init__.py(229B)
--------test_monadic.py(2KB)
--------test_function.py(3KB)
--------test_monadplus.py(2KB)
--------test_maybe.py(7KB)
----CONTRIBUTING.rst(257B)
----docs()
--------intro.rst(27B)
--------make.bat(5KB)
--------conf.py(964B)
--------index.rst(238B)
--------api()
--------reference.rst(193B)
--------Makefile(5KB)
--------changelog.rst(62B)
----LICENSE(1KB)
----.hgignore(255B)
----.hgtags(45B)
----MANIFEST.in(230B)
----setup.py(1KB)
----monad()
--------actions.py(5KB)
--------exceptions.py(427B)
--------mixins.py(1KB)
--------utils.py(2KB)
--------__init__.py(266B)
--------decorators.py(8KB)
--------types()
----tox.ini(77B)
----Makefile(2KB)

网友评论