github.com/supabase/cli@v1.168.1/internal/utils/slice.go (about) 1 package utils 2 3 func SliceContains[T comparable](s []T, e T) bool { 4 for _, a := range s { 5 if a == e { 6 return true 7 } 8 } 9 return false 10 } 11 12 func SliceEqual[T comparable](a, b []T) bool { 13 if len(a) != len(b) { 14 return false 15 } 16 for i, v := range a { 17 if v != b[i] { 18 return false 19 } 20 } 21 return true 22 }