Add iterator-based iteration to index data structures
Add iterator-based iteration to index data structures: a task in LegoFlow-SWE (Harbor dataset). The index data structures currently use callback-based iteration, which is incompatible with Go’s range-over-function feature. We need to add iterator-based methods that return iter.Seq types so that…
The task
The index data structures currently use callback-based iteration, which is incompatible with Go’s range-over-function feature. We need to add iterator-based methods that return `iter.Seq` types so that the index can be used in `for ... range` loops and with standard library functions like `slices.Collect`.
Part of Lego-X/LegoFlow-SWE.