Arrays are ordered collections; hashes are key-value collections (like dictionaries/maps). They're Ruby's two main data structures, both with rich, expressive methods (largely from the Enumerable module) that make data manipulation elegant.
Arrays — ordered collections
fruits = [, , ]
fruits[]
fruits[-]
fruits <<
fruits.length
fruits.?()
fruits.map { || f.upcase }
fruits.select { || f.length > }
fruits.each { || puts f }
[, , ].sort
[, , ].sum
