DEV Community

Discussion on: Recursion, Tail Call Optimization and Recursion.

Collapse
 
joenorth profile image
Joe North • Edited

Why is the Elixir example considered a use of TCO? It uses a Stream for lazy evaluation but is it using TCO under the hood?

Collapse
 
edisonywh profile image
Edison Yap

That was just a quick way for me to generate large numbers

Collapse
 
joenorth profile image
Joe North

Ah okay I get it now, thanks!