This is a debate i am having with a colleague.
Kotlin allows you to define Nested Functions, functions which exist within the scope of another function. I believe it makes a large function much more readable by breaking the function into named blocks of code which can be reusable.
Basic example of Nested Function. The Nested Functions also have access to the input parameters.
submitted by /u/willor777
[link] [comments]