summaryrefslogtreecommitdiff
path: root/ds/comparer.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-07-12 11:35:03 +0100
committerPaul Buetow <paul@buetow.org>2020-07-12 11:35:03 +0100
commit4edf2dd20b300c27dcc96829e262aedcd438291a (patch)
treef4596883c8210b4e855166289f482efb907bec64 /ds/comparer.go
have selection sort
Diffstat (limited to 'ds/comparer.go')
-rw-r--r--ds/comparer.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ds/comparer.go b/ds/comparer.go
new file mode 100644
index 0000000..737ad1b
--- /dev/null
+++ b/ds/comparer.go
@@ -0,0 +1,9 @@
+package ds
+
+type Comparer interface {
+ LowerThan(a Comparer) bool
+ HigherThan(a Comparer) bool
+ Equals(a Comparer) bool
+}
+
+type CompareList []Comparer