<@U78L28DMX> if `x` is null in `x?:0`, it will tur...
# random
t
@amanda.hinchman-dominguez if
x
is null in
x?:0
, it will turn into zero and avoid the null being added. It's a shorthand for
if (x == null) 0 else x
. https://kotlinlang.org/docs/reference/null-safety.html
👍 1