Paul Woitaschek
09/06/2018, 9:59 AMDico
09/06/2018, 10:01 AMcallBy
functionality might require significant change.typealias ChangePortionCountValue = (increase: Boolean) -> Unit
inline class ChangePortionCount(val value: ChangePortionCountValue) {
operator fun invoke(increase: Boolean) = value(increase)
}
fun something(changePortionCount: ChangePortionCount) {
changePortionCount(increase = true)
}