Lambda returning another lambda

后端 未结 4 1884
自闭症患者
自闭症患者 2021-02-08 15:59

is there any way how to return lambda from another lambda recursively?

All I want to do is finite state machine, implemented as lambda, which returns lambda implementin

4条回答
  •  野的像风
    2021-02-08 16:32

    I believe you can declare a delegate type: public delegate Lambda Lambda() which returns a delegate of its own type. It does compile, anyway.

提交回复
热议问题