// if contains the value then delete the value and return ture
// otherwise will return false
493478
func (s *Set) Remove(val interface{}) bool {
	if s.data[val] {
		delete(s.data, val)
		tmpSet := make([]interface{}, 0, len(s.data))
		for k, _ := range s.data {
			tmpSet = append(tmpSet, k)
		}

		s.values = tmpSet
		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
}
1275921
func (b Byte) If(fn func(byte)) {
	if b.Present() {
		fn(*b.value)
	}
}
131894
func (s stringSet) contains(str string) bool {
	for _, ss := range s {
		if ss == str {
			return true
		}
	}
	return false
}
1100352
func Contains(slice []string, item string) bool {
	set := make(map[string]struct{}, len(slice))
	for _, s := range slice {
		set[s] = struct{}{}
	}

	_, ok := set[item]
	return ok
}
1335393
func (self *Commands) False(value interface{}) error {
	if stringutil.IsBooleanFalse(value) {
		return nil
	} else {
		return fmt.Errorf("Expected false value")
	}
}
254608
func (s *OrderedSet) Contains(i string) bool {
	if _, ok := s.m[i]; ok {
		return true
	}
	return false
}
543844
func Contains(exprs []Expression, e Expression) bool {
	for _, expr := range exprs {
		if e == expr {
			return true
		}
	}
	return false
}
1244883
func Contains(list []string, e string) bool {
	for _, x := range list {
		if x == e {
			return true
		}
	}

	return false
}
942609
func (e *Error) Contains(sub string) bool {
	if e.err == nil {
		return false
	}
	return strings.Contains(e.formatError(), sub)
}
1244322
func (r Rune) If(fn func(rune)) {
	if r.Present() {
		fn(*r.value)
	}
}
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")
	}
}
807392
func (e Entries) Contains(entry *Entry) bool {
	for _, curr := range e {
		if curr.Equals(entry) {
			return true
		}
	}
	return false
}
948834
func (e Error) If(fn func(error)) {
	if e.Present() {
		fn(*e.value)
	}
}
774150
func (b *Bounding) Contains(c Comparable) bool {
	if b == nil {
		return true
	}
	for d := Dim(0); d < Dim(c.Dims()); d++ {
		if c.Compare(b[0], d) < 0 || c.Compare(b[1], d) > 0 {
			return false
		}
	}
	return true
}
1287406
func (u Uint) If(fn func(uint)) {
	if u.Present() {
		fn(*u.value)
	}
}
850805
func Contains(slice []string, lookup string) bool {
	for _, element := range slice {
		if element == lookup {
			return true
		}
	}
	return false
}