Suppose we have a val variable myList and want to get rid of some of the list elements using the remove function:
val myList = mutableListOf(1, 2, 3, 4, 5)
myList.remove(3)
Why does this code work correctly?
Suppose we have a val variable myList and want to get rid of some of the list elements using the remove function:
val myList = mutableListOf(1, 2, 3, 4, 5)
myList.remove(3)
Why does this code work correctly?
Create a free account to access the full topic