Join Slack
Powered by
Is it possible to provide a body to an elvis opera...
# announcements
s
steenooo
12/31/2019, 7:00 PM
Is it possible to provide a body to an elvis operator? If null, do this to acquire the value?
n
nwh
12/31/2019, 7:00 PM
run { ... }
might be what you're looking for. Ex:
Copy code
val v = something ?: run { /* generate fallback */ }
➕ 1
s
steenooo
12/31/2019, 7:01 PM
thanks! 🎉
👍🏻 1
6
Views
Open in Slack
Previous
Next