文件名称:functor-applicative-and-monad-laws:在 JavaScript 中实现的 Functor、Applicative Functor 和 Monad 定律
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-24 02:29:28
JavaScript
函子应用和单子律 依赖关系 混帐 节点.js 新产品经理 运行它 git clone https://github.com/mpereira/functor-applicative-and-monad-laws.git cd functor-applicative-and-monad-laws npm install node index.js 输出 Functor Law #1 (Identity): fmap id = id Functor Law #2 (Composition): fmap (f . g) = fmap f . fmap g Applicative Functor Law #1 (Identity): pure id <*> x = x Applicative Functor Law #2 (Homomorphism): pure f <*> pure x =
【文件预览】:
functor-applicative-and-monad-laws-master
----README.md(906B)
----.gitignore(14B)
----index.js(5KB)
----package.json(859B)