add note to improve intersectRunRun func

This commit is contained in:
Matt Jaffee 2017-05-26 13:23:29 -05:00
parent cf445f8012
commit 24c03f07f6

View file

@ -1671,6 +1671,7 @@ func intersectArrayRun(a, b *container) *container {
// the inputs. (note: it is possible that an array container would be better in
// some cases, but probably not worth complicating the implementation)
func intersectRunRun(a, b *container) *container {
// TODO need to take the last element of output.runs into account during each loop - possible that instead of appending, the last run should just be expanded
output := &container{}
na, nb := len(a.runs), len(b.runs)
for i, j := 0, 0; i < na && j < nb; {