How do I make a function involving futures tail recursive?
I might be mistaken, but your function doesn’t need to be tail recursive in this case. Tail recursion helps us to not consume the stack in case we use recursive functions. In your case, however, we are not actually consuming the stack in the way a typical recursive function would. This is because the “recursive” … Read more