[SES-1203] Disable radio buttons

This commit is contained in:
andrew
2023-10-20 13:32:16 +10:30
parent 8399771d5d
commit a9467c7b96
2 changed files with 4 additions and 1 deletions

View File

@@ -367,6 +367,8 @@ object Util {
}
}
fun <T, R> T.runIf(condition: Boolean, block: T.() -> R): R where T: R = if (condition) block() else this
fun <T, K: Any> Iterable<T>.associateByNotNull(
keySelector: (T) -> K?
) = associateByNotNull(keySelector) { it }