func (s *PathElementSet) Has(pe PathElement) bool {
	loc := sort.Search(len(s.members), func(i int) bool {
		return !s.members[i].Less(pe)
	})
	if loc == len(s.members) {
		return false
	}
	if s.members[loc].Equals(pe) {
		return true
	}
	return false
}
// Has returns true if pe is a member of the set.
Has returns true if pe is a member of the set.
// Has returns true if pe is a member of the set .
func (s *PathElementSet) Has(pe PathElement) bool {
	loc := sort.Search(len(s.members), func(i int) bool {
		return !s.members[i].Less(pe)
	})
	if loc == len(s.members) {
		return false
	}
	if s.members[loc].Equals(pe) {
		return true
	}
	return false
}
func ( s * PathElementSet ) Has ( pe PathElement ) bool { loc := sort . Search ( len ( s . members ) , func ( i int ) bool { return ! s . members [ i ] . Less ( pe ) } ) if loc == len ( s . members ) { return false } if s . members [ loc ] . Equals ( pe ) { return true } return false }
Has returns true if pe is a member of the set.
Has returns true if pe is a member of the set .