|
|
|
|
|
by Jtsummers
1820 days ago
|
|
Ada provides a kind of iterator called a Cursor which could be used to build up a package of functions similar to the various C++ standard library algorithms. I believe this has actually already been done. Cursors can also be converted back to positional information if it makes sense (like with a Vector). |
|
And sadly Cursors haven't been generalized to all associative iterable structures in Ada (arrays for example).