yoake/internal/entertainment/util.go
2022-11-11 17:16:53 -05:00

10 lines
160 B
Go

package entertainment
func contain[V comparable](slice []V, value V) bool {
for _, v := range slice {
if v == value {
return true
}
}
return false
}