summaryrefslogtreecommitdiff
path: root/sort/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'sort/shell.go')
-rw-r--r--sort/shell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sort/shell.go b/sort/shell.go
index 3041627..0ce32fc 100644
--- a/sort/shell.go
+++ b/sort/shell.go
@@ -4,7 +4,7 @@ import (
"codeberg.org/snonux/algorithms/ds"
)
-func Shell(a ds.ArrayList) ds.ArrayList {
+func Shell[V ds.Number](a ds.ArrayList[V]) ds.ArrayList[V] {
l := len(a)
// h-sort the array
h := 1