query.go
func Anyp(iterator Enumerable, p Predicate) bool {
	done := make(chan struct{})
	defer close(done)

	for element := range iterator.Enumerate(done) {
		if p(element) {
			return true
		}
	}
	return false
}
func Anyp(iterator Enumerable, p Predicate) bool {
	done := make(chan struct{})
	defer close(done)

	for element := range iterator.Enumerate(done) {
		if p(element) {
			return true
		}
	}
	return false
}
func Anyp ( iterator Enumerable , p Predicate ) bool { done := make ( chan struct { } ) defer close ( done ) for element := range iterator . Enumerate ( done ) { if p ( element ) { return true } } return false }
// Anyp tests an Enumerable to see if there are any elements present that meet a criteria.
Anyp tests an Enumerable to see if there are any elements present that meet a criteria .