Top "Tail-recursion" questions

Tail recursion is a recursive strategy in which a function does some amount of work, then invokes itself.

Does the JVM prevent tail call optimizations?

I saw this quote on the question: What is a good functional language on which to build a web service? …

java jvm scala tail-recursion
How do I check if gcc is performing tail-recursion optimization?

How do I tell if gcc (more specifically, g++) is optimizing tail recursion in a particular function? (Because it's come …

gcc g++ tail-recursion
Does Haskell have tail-recursive optimization?

I discovered the "time" command in unix today and thought I'd use it to check the difference in runtimes between …

haskell optimization lazy-evaluation tail-recursion tail-call-optimization
Does C# do tail recursion?

Possible Duplicate: Why doesn't .net/C# eliminate tail recursion? Does C# do tail recusion? I can't find any documentation telling …

c# tail-recursion
F# Tail Recursive Function Example

I am new to F# and was reading about tail recursive functions and was hoping someone could give me two …

f# tail-recursion
foldl is tail recursive, so how come foldr runs faster than foldl?

I wanted to test foldl vs foldr. From what I've seen you should use foldl over foldr when ever you …

optimization haskell tail-recursion combinators fold
How exactly does tail recursion work?

I almost understand how tail recursion works and the difference between it and a normal recursion. I only don't understand …

c algorithm recursion tail-recursion
C tail call optimization

I often hear people say that C doesn't perform tail call elimination. Even though it's not guaranteed by the standard, …

c standards tail-recursion tail-call-optimization
Reverse list Scala

Given the following code: import scala.util.Random object Reverser { // Fails for big list def reverseList[A](list : List[A]) : …

list scala recursion functional-programming tail-recursion