Nested Methods - Scala Documentation

In Scala it is possible to nest function definitions. The following object provides a factorial function for computing the factorial of a given number:


This is a companion discussion topic for the original entry at http://docs.scala-lang.org//tutorials/tour/nested-functions.html.html