summaryrefslogtreecommitdiff
path: root/ds/elem.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-07-17 10:01:52 +0100
committerPaul Buetow <paul@buetow.org>2020-07-17 10:01:52 +0100
commitdbd6388393282672859c789b0e1b58d4f8fd0d0b (patch)
tree252fe3f8cac56dc6f2934dc91634679a445ee593 /ds/elem.go
parente858efc16960b86175d655add938acd3f1edd13e (diff)
refactor
Diffstat (limited to 'ds/elem.go')
-rw-r--r--ds/elem.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ds/elem.go b/ds/elem.go
new file mode 100644
index 0000000..0589e81
--- /dev/null
+++ b/ds/elem.go
@@ -0,0 +1,10 @@
+package ds
+
+type Elem interface {
+ Equal(a Elem) bool
+ Lower(a Elem) bool
+ LowerEqual(a Elem) bool
+ Higher(a Elem) bool
+ HigherEqual(a Elem) bool
+ Int() int
+}