From: Eric Mahurin Date: 2006-05-26T04:50:00+09:00 Subject: Re: Equivalent of collections in Java On 5/25/06, Robert Klemme wrote: > Java collections indeed offer more *functionality*: these are the > collection types which do not have an equivalent in Ruby's std lib: > TreeSet, TreeMap, LinkedList, IdentityHashMap, Stack and the > synchronized Collections Vector and Hashtable. I found this to be a deficiency in ruby for what I was doing (a generic parser). The collections framework I made for ruby is called "cursor" and is on rubyforge. It combines concepts from Java collections/streams, C++ collections/iterators, and I guess even ruby's Array/IO classes. One API for many different datastructures - array/string, linked lists, file/io, circular structures, gap buffer, multi-threaded queue, etc. Any data-structure that has a (or can have a) linear order could fit into this framework.