Indicates whether this range will traverse its elements in reverse order.
Get how many elements are in this range.
⚠️ This might be an expensive operation, so make sure to cache it if you need frequent access to it.
Get an iterator that sequences the elements contained in this range.
Return an iterator that provides cursors to inspect or delete the given element.
Reverse the order of the elements that would be generated with the iterator.
Reversing a range is only possible when the order of the elements is well-defined, such as the elements in a list or a tree-based dictionary.
Generated using TypeDoc
A range is a well-defined sequence of elements that are part of a collection.
Traversing a range that is being mutated results is undefined behavior (with some exceptions). To be safe, you need to manually make a copy of the elements in the range before adding or removing elements.