由买买提看人间百态

topics

全部话题 - 话题: recursion
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c******o
发帖数: 1277
1
最简单的就是例子就是,用 for loop/recursive 去实现同一个东西。
for loop mutable variable, recursive immutable value.
尤其是有些复杂的logic要求recursive的参数里带有函数。
c******o
发帖数: 1277
2
来自主题: Programming版 - 这次Clojure把Scala给干了
this comparison happens many times, look at the comment, scala has its
greatness.
I am recently just fascinated by scalaz.
btw, how clojure handle stack overflow for complex recursions?
I am recently studying stackless scala, wondering how clojure handle
recursive that is not tail recursive.
i**i
发帖数: 1500
3
确实没必要。
这是精简版。不过还是很费解: