This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class BIf(val res: Boolean, val u: Any) | |
infix fun BIf.`ee` ( u: Any) = if (!this.res) u else this.u | |
infix fun Boolean.`ii` ( u: Any) = BIf( this@ii, u) | |
fun test (): Any { | |
return true ii "aaa" ee "vccc" | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Helpers and utils | |
internal inline var View.isVisibleEx: Boolean | |
get() = isVisible | |
set(value) { | |
if (value != isVisible) isVisible = value | |
} | |
internal inline var View.isEnabledEx: Boolean |