Commit 8cb2bbe
committed
Introduce IterableOnceOps as common abstraction for Iterable & Iterator
- Unlike the other Ops types, IterableOnceOps is *not* implemented by
IterableOnce but only by Iterator and Iterable.
- Fix the hierarchy of MultiSets and SortedMultiSets: The refactoring
caused soundness problems to show up that were not reported before.
These types now follow the usual diamond pattern where
mutable/immutable extends generic and sorted extends unsorted.1 parent 7163c7b commit 8cb2bbe
File tree
4 files changed
+44
-23
lines changed- src/main/scala/strawman/collection
- immutable
- mutable
4 files changed
+44
-23
lines changedLines changed: 33 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
17 | 45 | | |
18 | 46 | | |
19 | 47 | | |
| |||
25 | 53 | | |
26 | 54 | | |
27 | 55 | | |
28 | | - | |
| 56 | + | |
29 | 57 | | |
30 | 58 | | |
31 | 59 | | |
32 | 60 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 61 | | |
37 | 62 | | |
38 | 63 | | |
39 | 64 | | |
40 | 65 | | |
41 | 66 | | |
42 | 67 | | |
43 | | - | |
| 68 | + | |
44 | 69 | | |
45 | 70 | | |
46 | 71 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 72 | | |
51 | 73 | | |
52 | 74 | | |
| |||
57 | 79 | | |
58 | 80 | | |
59 | 81 | | |
60 | | - | |
| 82 | + | |
61 | 83 | | |
62 | 84 | | |
63 | 85 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
0 commit comments