Join Slack
Powered by
Is there any nicer way of writing `val hasItem: Bo...
# codereview
a
aoriani
06/09/2017, 10:36 PM
Is there any nicer way of writing
val hasItem: Boolean = (list?.any { it.id == key} ?: false) || something == null
?
6
Views
Open in Slack
Previous
Next