Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tracking issue for extra linked list methods #27794
referenced this issue
Nov 16, 2017
I'm going to echo @Gankro's thoughts:
An iterator conceptually represents a (double-ended) range of elements. The only operation that it supports is popping an element off the end of that range.
A cursor on the other hand represents a position in a collection, and can be moved backwards or forwards in the collection. The cursor can be used to insert or remove an element at any given position in the collection.
I strongly oppose adding insertion/deleting methods to