Wolfram语言中的Monads和“do”符号
Monads and "do" notation in the Wolfram Language
摘要:
本文描述了Wolfram语言的分类解释,并介绍了一元类型和“do”符号的简单实现。一元编程风格与Wolfram语言的许多内置的函数相结合,有可能成为编写Wolfram语言代码的强大工具。此外,使用纯函数和“do”符号可以产生非常可预测且易于并行化的程序。
英文摘要:
This paper describes a categorical interpretation of the Wolfram Language and introduces a simple implementation of monadic types and the "do" notation. The monadic style of programming combined with the many built in functions of the Wolfram Language has potential to be a powerful tool in writing Wolfram Language code. Additionally, using pure functions and the "do" notation can result in programs that are very predictable and easy to parallelize.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。