package moe.nea.firmament.util import kotlin.properties.ReadOnlyProperty fun ReadOnlyProperty.map(mapper: (V) -> M): ReadOnlyProperty { return ReadOnlyProperty { thisRef, property -> mapper(this@map.getValue(thisRef, property)) } }