DEV Community

[Comment from a deleted post]
Collapse
 
ntrupin profile image
Noah Trupin

Thanks for your input!

In this article I never provided an example for tail call optimization, but I'll be sure to either edit it into this one or make sure to incorporate samples for everything I talk about in future articles.

Collapse
 
aethelflaed profile image
@_Geoffroy

It may also be interesting to point out that in this example, the factorial is basically a reduction on a generator of numbers