Rename NextResult -> NextPath

See discussion in #92.
This commit is contained in:
kortschak 2014-08-01 07:27:16 +09:30
parent cb177aa390
commit f8e28e066e
20 changed files with 37 additions and 37 deletions

View file

@ -236,15 +236,15 @@ func (it *And) Size() (int64, bool) {
return val, b
}
// An And has no NextResult of its own -- that is, there are no other values
// An And has no NextPath of its own -- that is, there are no other values
// which satisfy our previous result that are not the result itself. Our
// subiterators might, however, so just pass the call recursively.
func (it *And) NextResult() bool {
if it.primaryIt.NextResult() {
func (it *And) NextPath() bool {
if it.primaryIt.NextPath() {
return true
}
for _, sub := range it.internalIterators {
if sub.NextResult() {
if sub.NextPath() {
return true
}
}