Replacing loops with recursion, whether in c, XSLT, or Scheme, takes some getting used to.
无论是在c、XSLT中,还是在Scheme中,都应用了使用递归代替循环。
In traditional languages, this recursion eats away at the stack to maintain a history of the calls; in Scheme, it's different.
在传统的语言中,这样的递归需要连续不断的入栈操作,以维护调用的历史;而在Scheme中,却不是这样。
This example uses what in Scheme is called tail recursion.
这个例子使用Scheme中所谓的尾递归(tail recursion)。
This example uses what in Scheme is called tail recursion.
这个例子使用Scheme中所谓的尾递归(tail recursion)。
应用推荐