yoake/internal/entertainment/util.go

11 lines
160 B
Go
Raw Normal View History

2022-11-11 16:15:22 -06:00
package entertainment
func contain[V comparable](slice []V, value V) bool {
for _, v := range slice {
if v == value {
return true
}
}
return false
}