On Recurrence Relations And Tail-Call Optimizations
Recursion is a topic discussed in chapter 2 of Functional Programming in Scala by Chisuano and Bjarnason. In this short post, I explore this topic from a different angle, discussing how we can get from a mathematical definition of the recurrence to a tail-call-optimized implementation.
more ...