From 198ceb7a3c1a6cb4416e861320c4a7c8033f2deb Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 9 Apr 2023 14:37:30 +0300 Subject: move types to types.go --- ds/arraylist.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ds/arraylist.go') 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] { -- cgit v1.2.3