Commit 719c095
fix: add cross-version parallel collections support via compat package
Implement version-specific compat package objects to handle parallel
collections differences between Scala 2.12 and 2.13:
- Scala 2.12: Empty compat package (parallel collections built-in)
- Scala 2.13: Provide .par extension method via implicit class that
delegates to CollectionConverters
Also fix .distinct call on ParIterable by converting to Seq first.
This enables .par to work across both Scala versions in KMeansPlusPlus.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 84b0431 commit 719c095
File tree
3 files changed
+14
-14
lines changed- src/main
- scala-2.12/com/massivedatascience/clusterer/compat
- scala-2.13/com/massivedatascience/clusterer/compat
- scala/com/massivedatascience/clusterer
3 files changed
+14
-14
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
13 | 11 | | |
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
158 | | - | |
| 157 | + | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
0 commit comments