Which programming language is this?
class Report(private val loader: () -> String) {
val body: String by lazy { loader() }
var title: String = ""
private set
}
Answer: Kotlin
Swift has lazy properties too, but delegated properties with
Play Programming Languages ▸
by lazy { } and an indented private set accessor are Kotlin syntax.