Chi
06/18/2019, 9:11 PMDominaezzz
06/18/2019, 9:15 PMif
.Luke
06/18/2019, 9:17 PM.takeIf{}
Chi
06/18/2019, 9:19 PMif(needRun) {println("it run")}
. I think too muchMatt Thompson
06/18/2019, 9:21 PMBoolean
but yeah, would be overkill in this caseChi
06/18/2019, 9:21 PMChi
06/18/2019, 9:22 PMMarko Mitic
06/19/2019, 12:52 PMinline fun Boolean.runIfTrue(action: () -> Unit) {
if (this) action()
}