Join Slack
Powered by
``` val x: List<Double?> = listOf(1.0, n...
# announcements
l
liamd
08/17/2017, 7:20 PM
Copy code
val x: List<Double?> = listOf(1.0, null, 3.0) val y: List<Double> = x.filter { it != null }
this doesn't work but how can i get a list of optionals to be non-optional as far as the compiler is concerned?
Open in Slack
Previous
Next