Since .deep method is been removed since Scala 2.13 What would be the best way to compare two Arrays that would work same as .deep? Example:(Before Scala 2.13, it would work as follows)
scala> Array(Array(1),2).deep == Array(Array(1),2).deep
res3: Boolean = true
One preferred solution is to use sameElements method, but this method does not work if the Array is nested. Example:
scala> Array(Array(1),2) sameElements Array(Array(1),2)
res0: Boolean = false
Note: I'm using Scala 2.13.3