Pere Casafont
05/08/2019, 6:10 AMAny?.orElse(block: () -> Nothing)
which works for the purpose like a charm but then I wonder why there isn't anything like that in the language itself or the stdlib, maybe I am missing something?Pavlo Liapota
05/08/2019, 6:11 AMexpression ?: run {
defaultValue
}
Pere Casafont
05/08/2019, 6:12 AMPavlo Liapota
05/08/2019, 6:12 AMPere Casafont
05/08/2019, 6:14 AM