Is it possible to provide a body to an elvis opera...
# announcements
s
Is it possible to provide a body to an elvis operator? If null, do this to acquire the value?
n
run { ... }
might be what you're looking for. Ex:
Copy code
val v = something ?: run { /* generate fallback */ }
1
s
thanks! 🎉
👍🏻 1