Values & References6 / 15
Up next

val fixes the binding

fun main() {
    // val stops rebinding, but the list itself can still change
    val list = mutableListOf(1, 2)
    list.add(3)
    println(list)
}
What you're solving

not the object's contents