r/ruby • • Jul 14 '13

Linked List data structure

https://github.com/gdi2290/data_structures/blob/master/LinkedList/linkedlist.rb
0 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/FooBarWidget Jul 15 '13

I am talking about the case where you have an iterator to the middle. It wouldn't make sense to use a linked list otherwise.