// Contains returns true if string is contained in string slice
494191
func Contains(s string, list []string) bool {
	return IsIn(s, list, false)
}
227698
func (r *Range) Contains(other Version) bool {
	return other.Compare(&r.Begin) >= 0 && other.Compare(&r.End) < 0
}
1341853
func Contains(haystack Value, needle Value) (bool, error) {
	res := false
	_, err := Iterate(haystack, func(k Value, v Value, l Loop) (bool, error) {
		if Equal(v, needle) {
			res = true
			return true, nil // break
		}
		return false, nil
	})
	if err != nil {
		return false, err
	}
	return res, nil
}
81331
func containsString(values []string, element string) bool {
	for _, value := range values {
		if value == element {
			return true
		}
	}
	return false
}
254608
func (s *OrderedSet) Contains(i string) bool {
	if _, ok := s.m[i]; ok {
		return true
	}
	return false
}
576983
func ContainsStrings(coll []string, item string) bool {
	for _, a := range coll {
		if a == item {
			return true
		}
	}
	return false
}
1301381
func (set StringSet) ContainsAll(i ...string) bool {
	allSet := NewStringSetFromSlice(i)
	if allSet.IsSubset(set) {
		return true
	}
	return false
}
1164534
func contains(a, b string) bool {
	return a == b || strings.HasPrefix(b, a+"/")
}
617541
func contains(key string, list []string) bool {
	for _, innerKey := range list {
		if key == innerKey {
			return true
		}
	}
	return false
}
664844
func (s Set) Contains(value string) bool {
	_, ok := s[value]
	return ok
}
160179
func (term Range) Contains(other Range) bool {
	return term.Intersection(other).Equals(other)
}
942883
func (s Seq) Contains(q uint32) bool {
	if q == 0 {
		return s.Stop == 0 // "*" is contained only in "*" and "n:*"
	}
	return s.Start != 0 && s.Start <= q && (q <= s.Stop || s.Stop == 0)
}
363443
func (q *QueryString) Contains(name string) bool {
	_, ok := q.fields[name]
	return ok
}
1205505
func Contains(ie interface{}, sub string) bool {
	if ie == nil || sub == "" {
		return false
	}
	switch val := ie.(type) {
	case *Error:
		if val == nil {
			return false
		}
		return val.Contains(sub)
	case error:
		if val == nil {
			return false
		}
		return strings.Contains(val.Error(), sub)
	case string:
		return strings.Contains(val, sub)
	default:
		panic("invalid type")
	}
}
397290
func (a Nodes) Contains(n *Node) bool {
	for i := range a {
		if a[i] == n {
			return true
		}
	}
	return false
}
1327255
func (ss *StringSet) Contains(subj string) bool {
	for _, s := range *ss {
		if glob.Glob(s, subj) {
			return true
		}
	}

	return false
}
538584
func Contains(a, b Type) bool {
	if any, ok := a.(Any); ok {
		return any.Contains(b)
	}
	return Compare(a, b) == 0
}