wrapIn

infix inline fun <T, V, R : Any> ReadOnlyProperty<T, V>.wrapIn(crossinline mapper: (V) -> R): SynchronizedLazyPropertyWrapper<T, R>

Utility function that wraps a given property using the given wrapper. This is useful when you want to transform the output of a property in some way.

This caches the result -- the mapper is executed lazily the first time the property is geted.