什么是Y组合器? [英] What is a Y-combinator?

查看:141
本文介绍了什么是Y组合器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Y-combinator是来自功能的计算机科学概念,事物的一面。大多数程序员对combinators了解得不多,如果他们甚至听说过它们的话。




  • 什么是Y组合器?



  • 它们适用于过程语言
  • 如果您准备好进行长时间阅读, Mike Vanier有一个很好的解释。长话短说,它允许您以本地不一定支持它的语言实现递归。


    A Y-combinator is a computer science concept from the “functional” side of things. Most programmers don't know much at all about combinators, if they've even heard about them.

    • What is a Y-combinator?
    • How do combinators work?
    • What are they good for?
    • Are they useful in procedural languages?

    解决方案

    If you're ready for a long read, Mike Vanier has a great explanation. Long story short, it allows you to implement recursion in a language that doesn't necessarily support it natively.

    这篇关于什么是Y组合器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆