forked from wgroeneveld/go-jamming
11 lines
150 B
Go
11 lines
150 B
Go
|
package common
|
||
|
|
||
|
func Includes(slice []string, elem string) bool {
|
||
|
for _, el := range slice {
|
||
|
if el == elem {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|