summaryrefslogtreecommitdiff
path: root/ds/arraylist.go
diff options
context:
space:
mode:
Diffstat (limited to 'ds/arraylist.go')
-rw-r--r--ds/arraylist.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/ds/arraylist.go b/ds/arraylist.go
index de27832..f2616c7 100644
--- a/ds/arraylist.go
+++ b/ds/arraylist.go
@@ -4,17 +4,8 @@ import (
"fmt"
"math/rand"
"strings"
- "golang.org/x/exp/constraints"
)
-type Integer interface {
- constraints.Integer
-}
-
-type Number interface {
- constraints.Integer | constraints.Float
-}
-
type ArrayList[V Number] []V
func NewArrayList[V Number](l int) ArrayList[V] {