summaryrefslogtreecommitdiff
path: root/sort/parallelquick.go
diff options
context:
space:
mode:
Diffstat (limited to 'sort/parallelquick.go')
-rw-r--r--sort/parallelquick.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sort/parallelquick.go b/sort/parallelquick.go
index ae203f2..5763efc 100644
--- a/sort/parallelquick.go
+++ b/sort/parallelquick.go
@@ -6,13 +6,13 @@ import (
"codeberg.org/snonux/algorithms/ds"
)
-func ParallelQuick(a ds.ArrayList) ds.ArrayList {
+func ParallelQuick[V ds.Number](a ds.ArrayList[V]) ds.ArrayList[V] {
//Shuffle(a)
parallelQuick(a)
return a
}
-func parallelQuick(a ds.ArrayList) {
+func parallelQuick[V ds.Number](a ds.ArrayList[V]) {
l := len(a)
if l < 1000 {