Ruby Arrays and Lists
Enumerated Type Ruby doesn't have
But there are cool workarounds
Implementation of Arrays
· Ruby's Arrays are backed by actual C arrays.
Wh fi t d l b i (When you first declare a basic array ( or
Array.new) an instance of the RArray struct is
created, and it points to a C array which is
allocated with a size of 16.
· When we need more space we increase the p
size by half again of the needed size and copy