Skip to content

Commit 52d8d0e

Browse files
jiminhsiehjulienrf
authored andcommitted
Rename unordered to unsorted. (#329)
* Rename unordered to unsorted. * Remove `unordered` method and add `unsorted` method to `SortedSet` and `SortedMap`
1 parent 367d91a commit 52d8d0e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/scala/strawman/collection/SortedMultiMap.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait SortedMultiMap[K, V]
1010
extends MultiMap[K, V]
1111
with SortedMultiMapOps[K, V, SortedMultiMap, SortedMultiMap[K, V]] {
1212

13-
def unordered: MultiMap[K, V] = this
13+
def unsorted: MultiMap[K, V] = this
1414

1515
}
1616

@@ -26,7 +26,7 @@ trait SortedMultiMapOps[K, V, +CC[X, Y] <: MultiMap[X, Y], +C <: MultiMap[K, V]]
2626
sortedFromIterable(it.view.flatMap { case (l, ws) => ws.map(w => (l, w)) })
2727

2828
/** `this` sorted multimap upcasted to an unsorted multimap */
29-
def unordered: MultiMap[K, V]
29+
def unsorted: MultiMap[K, V]
3030

3131
def sets: SortedMap[K, Set[V]]
3232

src/main/scala/strawman/collection/SortedMultiSet.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait SortedMultiSet[A]
1010
extends MultiSet[A]
1111
with SortedMultiSetOps[A, SortedMultiSet, SortedMultiSet[A]] {
1212

13-
def unordered: MultiSet[A] = this
13+
def unsorted: MultiSet[A] = this
1414

1515
}
1616

@@ -25,7 +25,7 @@ trait SortedMultiSetOps[A, +CC[X] <: MultiSet[X], +C <: MultiSet[A]]
2525
sortedFromIterable(it.view.flatMap { case (b, n) => View.Fill(n)(b) })
2626

2727
/** `this` sorted multiset upcasted to an unsorted multiset */
28-
def unordered: MultiSet[A]
28+
def unsorted: MultiSet[A]
2929

3030
def occurrences: SortedMap[A, Int]
3131

0 commit comments

Comments
 (0)