Showing posts with label b9845| Recursive Function. Show all posts
Showing posts with label b9845| Recursive Function. Show all posts

Recursive Function

// PS:43, psn > a15 > 160
// Scala type inference cannot infer the return type of recursive
// function

// @tailrec Annotation can be used to check tail-call optimization