NewMergedStringIter returns string iterator that allows to merge symbols on demand and stream result.
(a, b index.StringIter)
| 1218 | |
| 1219 | // NewMergedStringIter returns string iterator that allows to merge symbols on demand and stream result. |
| 1220 | func NewMergedStringIter(a, b index.StringIter) index.StringIter { |
| 1221 | return &mergedStringIter{a: a, b: b, aok: a.Next(), bok: b.Next()} |
| 1222 | } |
| 1223 | |
| 1224 | type mergedStringIter struct { |
| 1225 | a index.StringIter |
searching dependent graphs…