Join Slack
Powered by
is there a function to print out non null array of...
# announcements
c
Chi
05/19/2019, 8:12 PM
is there a function to print out non null array of int in Kotlin?
[1,2,null]
will print
[1,2]
h
Horv
05/19/2019, 8:14 PM
I'd recommend
#C0B8MA7FA
for questions as these.
simple smile
You can use it with a list filter:
listOfIntsAndNulls.filterNotNull()
Open in Slack
Previous
Next