Join Slack
Communities
Powered by
Is there a way to extract a boxed variable’s inten...
# announcements
r
rook
08/15/2017, 1:29 PM
Is there a way to extract a boxed variable’s intended type even when it’s current value is null?
Copy code
fun Foo(value: String?) { value?.trim() ?: //do something with the String type here }
Open in Slack
Previous
Next