Muhammad Zaryab Rafique
05/07/2021, 12:28 PMColton Idle
05/07/2021, 12:36 PMMuhammad Zaryab Rafique
05/07/2021, 12:38 PMif(currentTime <= specificTime}{ type = NewType}
iamthevoid
05/07/2021, 12:43 PMfun <T> T.applyIf(predicate : (T) -> Boolean, action: T.() -> Unit) {
if (predicate(this)) apply(action)
}
iamthevoid
05/07/2021, 12:44 PMiamthevoid
05/07/2021, 12:44 PMMuhammad Zaryab Rafique
05/07/2021, 12:45 PMiamthevoid
05/07/2021, 12:46 PMif
construction. So think carefully if you really need that DSL way ))Muhammad Zaryab Rafique
05/07/2021, 12:46 PM