Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 795808c + d4c5aa0 commit 250136aCopy full SHA for 250136a
src/library/scala/collection/SortedOps.scala
@@ -12,6 +12,11 @@ trait SortedOps[A, +C] {
12
/** Returns the last key of the collection. */
13
def lastKey: A
14
15
+ /** Comparison function that orders keys. */
16
+ @deprecated("Use ordering.compare instead", "2.13.0")
17
+ @deprecatedOverriding("Use ordering.compare instead", "2.13.0")
18
+ @inline def compare(k0: A, k1: A): Int = ordering.compare(k0, k1)
19
+
20
/** Creates a ranged projection of this collection. Any mutations in the
21
* ranged projection will update this collection and vice versa.
22
*
0 commit comments