JortSort: Difference between revisions

Content added Content deleted
(Updated for compatibility with Scala 3)
Line 1,383: Line 1,383:
The Java deepEquals() method will work as a replacement.
The Java deepEquals() method will work as a replacement.


<lang scala>
<lang scala>import java.util.Objects.deepEquals
import java.util.Objects.deepEquals


def jortSort[K:Ordering]( a:Array[K] ) =
def jortSort[K:Ordering]( a:Array[K] ) = deepEquals(a.sorted, a)</lang>
deepEquals(a.sorted, a)
</lang>


=={{header|Sidef}}==
=={{header|Sidef}}==