您知道哪些优雅且图灵完备的机器*? 书中有一本吗?

发布于 2024-07-12 06:16:22 字数 200 浏览 19 评论 0原文

Lambda 演算当然非常优雅,但是函数的输入和输出之间存在这种不对称性,您不会感到困扰吗? 即,您可以使该函数接受两个参数(通过返回一个函数),但不能使其返回两个值。 我认为我们无法在这本书中找到它。

Lambda calculus of course is quite elegant, but doesn't it bother you that there is this asymmetry between input and output of a function? I.e. you can make the function take two parameters (by returning a function) but you can't make it return two values.
I don't think we could find it in The Book.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ぶ宁プ宁ぶ 2024-07-19 06:16:22

您可以让它返回一个函数,其计算结果返回两个值。

You can make it return a function whose evaluations return two values.

沙沙粒小 2024-07-19 06:16:22

或者您可以返回复合结构。 就像返回向量的向量函数一样,其中有单独的组件。

顺便说一句,您的标题问题与您提出的实际问题有什么关系?

Or you can return a compound structure. Just like a vector function which returns a vector, which has separate components in there.

BTW what does your header question have to do with the actual question you've asked?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文