nothing...something
虛心實腹 弱志強骨
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment