Is there a way to simplify `return if (resource !=...
# announcements
k
Is there a way to simplify
return if (resource != null) something(resource) else null
using some of the null-safety operators?
r
karelpeeters:
return resource?.let { something(it) }
k
Thanks, that works.
k
return resource?.let(::something)