Recursive Tail Calls and Trampolines in Swift

Umberto Raimondi (via Natasha Murashev): In this post we’ll see how the lack of predictable tail call elimination in Swift could be overcome using trampolines and a few alternatives to recursion will be described. […] A trampoline is not much more than a loop that executes iteratively functions that can either return the next function … Continue reading Recursive Tail Calls and Trampolines in Swift