From 0c6d4ed2e499e3e17165e43803d0d1c6dd0956d9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 2 Apr 2023 20:22:13 +0300 Subject: initial generics --- sort/shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sort/shell.go') 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 -- cgit v1.2.3