"A lambda expression or anonymous function (as well as a local function and an object expression) can access its closure, i.e. the variables declared in the outer scope. Unlike Java, the variables captured in the closure can be modified:"
It doesn't explicitly state how Kotlin capture outside variables. So I can't be sure about this.
It just says outside variables can be modified inside Kotlin's lambda