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