I am coming form a java world and usually think about a collection interface (set, list, map) that is required and depending on different use case select which concrete implementation to use, something like this reference of Java Question
I am wondering if there is a good summary of analogous ruby data strucutres corresponding to those in java that is available ?
If not can someone provide the favourite implementations people use for:
- listed here in the table in middle of page http://docs.oracle.com/javase/1.5.0/docs/guide/collections/overview.html
- some other ones like say queues: blocking, delayed, linked-blocking queue, circular etc trie trees etc
Better if most are from ruby standard library, otherwise popular gems are fine as well.
My intention is to have a place to refer when selecting good data structure implementations in ruby world
Thanks!