prelude:基于 Haskell Prelude、Fsharp 和 OCaml 的 Python 函数式编程库

时间:2021-06-01 12:13:28
【文件属性】:
文件名称:prelude:基于 Haskell Prelude、Fsharp 和 OCaml 的 Python 函数式编程库
文件大小:23KB
文件格式:ZIP
更新时间:2021-06-01 12:13:28
Python 序幕 Prelude 是一个函数式编程库,其灵感来自 Haskell 等 FP 语言,它具有快速 lambda 函数、易于柯里化、柯里化函数和许多有用的高阶函数等不错的特性 谓词函数 类型检查功能 is_tuple Test if is a tuple is_list Test if os a list is_gen Test if is a generator is_str Test if is a string is_function Test if is a function (has __call__ method) 运算符功能 Argument Result add x y x+y sub y x y-x div
【文件预览】:
prelude-master
----.gitignore(59B)
----examples()
--------mathseries.py(932B)
----README.md(4KB)
----prelude()
--------sequence.py(4KB)
--------Dict.py(4KB)
--------__init__.py(5KB)
--------hof.txt(8KB)
--------Operator.py(4KB)
--------Modules.py(3KB)
--------TestUtils.py(683B)
--------monad.py(4KB)
--------prelude.py(12KB)
--------ControlFlow.py(3KB)
--------Str.py(3KB)
--------Chain.py(2KB)
--------Lazy.py(3KB)
----tests()
--------test_stream.py(549B)
--------test_maybe.py(1KB)

网友评论