Concepts
Scala Principles in a Nutshell (Part IV)
What is a recursive method? A method that calls itself many times before reaching a specific condition or base case. What is a tail-recursive method? A method which calls itself in the last instruction (tail-call). In the case of Scala (and other FP languages), a tail-recursive method can reuse the Read more…