summaryrefslogtreecommitdiff
path: root/ds
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-07-17 09:03:52 +0100
committerPaul Buetow <paul@buetow.org>2020-07-17 09:03:52 +0100
commit8f291992bdd98bd7ca6eefe084790e56d00833a8 (patch)
tree3313bbfd675a1f5fef0178152a4ade83b5b27f2e /ds
parente6e3b27756974ad7255345c98260918a96f3a476 (diff)
fix shell sort
Diffstat (limited to 'ds')
-rw-r--r--ds/comparer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ds/comparer.go b/ds/comparer.go
index 8fb3727..c132ea9 100644
--- a/ds/comparer.go
+++ b/ds/comparer.go
@@ -8,3 +8,7 @@ type Comparer interface {
HigherEqual(a Comparer) bool
Int() int
}
+
+func (c []Comparer) firstN(n int) []Comparer {
+ return c
+}