- marked as enhancement
No way to get previous or next element of LinkedList efficiently
Issue #57
new
It seems there is no way to access elements before or after given one efficiently. In Java it can be done easily with ListIterator, but in Trove there is no primitive ListIterator. Another alternative would be raw TIntIterator, but it will mean using only one link (because there is no "previous" on TIntIterator).
I would assume TIntLink can be of use here, but unfortunately it is package-local, despite TIntLinkedList.getLinkAt being public (so I can't use getLinkAt).
Comments (1)
-
- Log in to comment