listOf() returns an immutable List. mutableListOf() returns a MutableList, which supports the same []= operator that Array does.

You can learn more about this in:
Run Expand Edit