comet icon indicating copy to clipboard operation
comet copied to clipboard

Implement Iterator for `Vector<T>`

Open segeljakt opened this issue 3 years ago • 1 comments

This could be quite nice for ergonomics if it was possible. Maybe we could reuse the splice method, or am I wrong?

segeljakt avatar Jan 24 '22 23:01 segeljakt

It is possible, but there are a few problems that appear with iterators: inerior pointers. Until we support them properly it is impossible to have "safe" iterators implementation and you're forced to iterate using index

playXE avatar Jan 27 '22 07:01 playXE