10 lines
160 B
Go
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
|
|
}
|