Saturday, September 5, 2009

LAMBDA and recursion

Usually we call the procedure itself to realize recursion.
Since there is no name for LAMBDA function, I was confused with recursion using LAMBDA.
Can do this like below.

Confirm by inputting ((f + 0) 10), you can get the return value 10.

在LAMBDA中调用主函数可以实现递归调用。

LAMBDAの中に親関数を呼び出しで再帰できます。

No comments:

Post a Comment