`b?.let { a?.plus(it) ?: it } ?: a` to return null...
# announcements
e
b?.let { a?.plus(it) ?: it } ?: a
to return null only if both are null
c
this works, but it's really unreadable, in production code at least extract this to appropriately named method.
1
e
Absolutely. A separate method if you are going to use it in real code