Join Slack
Powered by
How to delete element from array in kotlin ? can ...
# announcements
m
Mahmood Ali
03/14/2018, 7:11 PM
How to delete element from array in kotlin ? can u give me simple example ?
r
Ruckus
03/14/2018, 7:14 PM
You can't. Arrays can't be resized. If you want to change the size, use a list.
m
Mahmood Ali
03/14/2018, 7:28 PM
Thank you ..
c
commanderpepper
03/14/2018, 7:31 PM
You can remove an element from an array if the array is mutable
commanderpepper
03/14/2018, 7:31 PM
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/remove.html
r
Ruckus
03/14/2018, 7:32 PM
That's a list, not an array
c
commanderpepper
03/14/2018, 7:35 PM
Yeah your right, my bad. I got the two confused
2
Views
Open in Slack
Previous
Next