Let’s talk about how to access things in Arrays. # This can accept a single integer, which represents the index you wish to hit. Arrays are zero based, meaning that the “first” element is not in the “1” spot, but “0”. If the number is negative, it starts from the end of the array. invitation… Continue reading Stick ’em up! Get what you want out of Arrays.
There are a variety of ways to create an array. Literal Constructor Simply set a variable equal to  arya = [“Stark”, 7, “Thrones”] #=> [“Stark”, 7, “Thrones”] #new Use the #new method on Array. Array.new #=>  You can give this method a number to give it a size. Array.new(7) #=> [nil, nil,… Continue reading Let’s Make An [Array] Baby