Why does the code work?

Report a typo

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?

Select one option from the list
___

Create a free account to access the full topic