https://fpilluminated.com/deck/252
In this deck we are going to look at a number of different implementations of a function for computing the nth element of the Fibonacci sequence.
In part 1 we look at the following:
- Naïve Recursion
- Efficient Recursion with Tupling
- Tail Recursion with Accumulation
- Tail Recursion with Folding
- Stack-safe Recursion with Trampolining