JortSort: Difference between revisions
Content deleted Content added
Keithpinson (talk | contribs) Updated for compatibility with Scala 3 |
|||
Line 1,380:
=={{header|Scala}}==
As of Scala 2.13, the .deep method has been removed from Array.
The Java deepEquals() method will work as a replacement.
<lang scala>
import java.util.Objects.deepEquals
def jortSort[K:Ordering]( a:Array[K] ) = a.sorted.deep == a.deep▼
deepEquals(a.sorted, a)
</lang>
|