parent
cb177aa390
commit
f8e28e066e
20 changed files with 37 additions and 37 deletions
|
|
@ -88,9 +88,9 @@ func (it *Optional) Result() graph.Value {
|
|||
// An optional iterator only has a next result if, (a) last time we checked
|
||||
// we had any results whatsoever, and (b) there was another subresult in our
|
||||
// optional subbranch.
|
||||
func (it *Optional) NextResult() bool {
|
||||
func (it *Optional) NextPath() bool {
|
||||
if it.lastCheck {
|
||||
return it.subIt.NextResult()
|
||||
return it.subIt.NextPath()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue