Values & References7 / 15
Up next

Aliasing

fun main() {
    val a = mutableListOf(1, 2)
    // b is another name for the SAME list
    val b = a
    b.add(3)
    println(a)
    println(a === b)
}
What you're solving

two names, one object