https://kotlinlang.org logo
k

karelpeeters

01/12/2018, 11:43 AM
If it's not a capturing lambda (ie. it doesn't refer to variables in the surrounding context) the compiler makes it a singleton, and that could give unexpected results.