package main func contain[T comparable](arr []T, elem T) bool { for _, v := range arr { if v == elem { return true } } return false }