The tail call functional design pattern is a subroutine, or a tail-recursive function, that is executed at the end of a procedure. This design pattern is also referred to as the Tail Call Optimization (TCO). The concept of this pattern is straightforward. The tail call is the last call performed by a method.
In the next section, we will implement the tail call functional design pattern.