```class LazyProperty(val initializer: () -> In...
# getting-started
e
Copy code
class LazyProperty(val initializer: () -> Int) {
    private val lazyValue: Int? = null
        get() {
            if (field == null) field = initializer()
            return field
}
    val lazy: Int
        get() = lazyValue!!
}