robstoll
05/04/2018, 2:02 PMfun <R> (() -> R).evalOnce(): () -> R {
val v by lazy { this() }
return { v }
}
but which works also for functions with one or more parameters?poohbar
05/04/2018, 2:03 PMrobstoll
05/04/2018, 2:03 PMjlleitschuh
05/04/2018, 2:04 PMspand
05/04/2018, 2:05 PMrobstoll
05/04/2018, 2:05 PMdiego-gomez-olvera
05/04/2018, 2:51 PMjlleitschuh
05/04/2018, 2:53 PM