DEV Community

loading...

Discussion on: Iteration, recursion, and tail-call optimization in Elixir

Collapse
citizen428 profile image
Michael Kohl

As you already noted, a tail-recursive function that doesn't have to reverse the list will actually be faster, which is also noted in the "7 myths" article you linked. IMHO this isn't necessarily about performance though, more about whether or not this will blow your stack at a certain recursion depth.