equals

Common
JVM
JS
Native
1.0
open fun equals(other: Any?): Boolean
(source)

Checks if the two specified lists are structurally equal to one another.

Two lists are considered structurally equal if they have the same size, and elements at corresponding indices are equal. Elements are compared for equality using the equals function. For floating point numbers, this means NaN is equal to itself and -0.0 is not equal to 0.0.

Parameters

other - the list to compare with this list.

Return true if other is a List that is structurally equal to this list, false otherwise.