Values & References13 / 15
Up next

Referential equality

fun main() {
    val a = listOf(1, 2, 3)
    val b = listOf(1, 2, 3)
    val c = a
    // === asks whether it is the same object
    println(a === b)
    println(a === c)
}
What you're solving

=== compares identity