How to compare two arrays in Kotlin?
问题 Given some arrays in Kotlin let a = arrayOf("first", "second") val b = arrayOf("first", "second") val c = arrayOf("1st", "2nd") Are there built-in functions to the Kotlin std-lib that tests two arrays for (value) equality for each element? Thus resulting in: a.equals(b) // true a.equals(c) // false equals() is actually returning false in both cases, but maybe there are built-in functions to Kotlin that one could use? There is the static function java.utils.Arrays.deepEquals(a.toTypedArray(),