Kotlin Delegated properties Lazy initialization


Example

val foo : Int by lazy { 1 + 1 }
println(foo)

The example prints 2.