marcinmoskala
04/11/2017, 9:30 AMval value get() = getValue()
if we define
operator fun <R> (() -> R).getValue(thisRef: Any?, property: KProperty<*>): R = invoke()
we can use it this way:
val value by { getValue() }
Useless, but funny xD Might be useful in 1.0 if we would like to have type inferred
val a by { 1 }
val b by { "KOKO" }
val c by { 1 + 100 }