Login
Roast topics
Find topics
Find it!
From:
Alexandru Nedelcu - Blog
(Uncensored)
subscribe
Tail Recursive Functions (in Scala)
https://alexn.org/blog/2021/01/26/tail-recursive-functions-in-scala/?pk_campaign=rss
links
backlinks
Tagged with:
algorithms
scala
fp
Roast topics
Find topics
Roast it!
Turning imperative algorithms to tail-recursive functions isn’t necessarily obvious. In this article (and video) I’m showing you the trick you need, and in doing so, we’ll discover the Zen of Functional Programming.