FIR IDE: move light classes to separate module

This commit is contained in:
Ilya Kirillov
2021-08-21 12:23:25 +03:00
parent abe2311372
commit c17a4a5a3b
66 changed files with 286 additions and 237 deletions
@@ -184,3 +184,13 @@ inline fun <K, V, VA : V> MutableMap<K, V>.getOrPut(key: K, defaultValue: (K) ->
value
}
}
inline fun <T> T.applyIf(`if`: Boolean, body: T.() -> T): T =
if (`if`) body() else this
inline fun <T> Boolean.ifTrue(body: () -> T?): T? =
if (this) body() else null
inline fun <T> Boolean.ifFalse(body: () -> T?): T? =
if (!this) body() else null