Mark
05/06/2020, 9:19 AM?.apply
or ?.also
but for doing the same when the value is null I end up doing something like
?: run {
…
null
}
or even ?: null.apply { ... }
Is there a way to write this without having to specify null
again?