Scala – Closures
A closure is a function, whose return value depends on the value of one or more variables declared outside this function.
A closure is a function, whose return value depends on the value of one or more variables declared outside this function.