O'Reilly logo
  • Roger Menezes thinks this is interesting:

First, let’s write factorial:

From

Cover of Functional Programming in Scala

Note

Important point that inner functions should be no bigger deal than just local variables