Mega Code Archive
Categories
/
Ruby
/
Array
Arrays dont need to be set up with predefined entries or have elements allocated manually
x = [] # The array is empty # Trying to address, say, x[5] results in nothing being returned. puts x[5]