Scala Tail Recursion Annotation
Recursion is hard enough, make use of the tail recursion annotation
Scala supports both object oriented programming and functional programming which embraces solutions using recursion over iteration. One performance improvement Scala implements is ability to annotate functions as a tail recursion. Scala has to implement this since JVM doesn’t support pre-optimization of recursive functions.