aboutsummaryrefslogtreecommitdiff
path: root/ops.go
diff options
context:
space:
mode:
Diffstat (limited to 'ops.go')
-rw-r--r--ops.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/ops.go b/ops.go
index 7d35e0d..d73b1c1 100644
--- a/ops.go
+++ b/ops.go
@@ -1,4 +1,4 @@
-package main
+package add
import (
"container/list"
@@ -6,19 +6,19 @@ import (
"log"
)
-type (
- // Set is ordered set of alphabet
- Set struct{ *list.List }
+// Set is ordered set of alphabet
+type Set struct{ *list.List }
- // Element of ordered set
- Element struct{ *list.Element }
-)
+// Element of ordered set
+type Element struct{ *list.Element }
var (
alphabet Set
zero, one Element
)
+const maxValue = 1000
+
func init() {
alphabet = Set{list.New()}
for i := 0; i <= maxValue; i++ {