Which languages support *recursive* function literals / anonymous functions?

后端 未结 16 2345
一整个雨季
一整个雨季 2021-02-04 05:09

It seems quite a few mainstream languages support function literals these days. They are also called anonymous functions, but I don\'t care if they have a name. The important th

16条回答
  •  长发绾君心
    2021-02-04 06:07

    Anonymous functions exist in C++0x with lambda, and they may be recursive, although I'm not sure about anonymously.

    auto kek = [](){kek();}
    

提交回复
热议问题