Mega Code Archive
Categories
/
Ruby
/
Array
In Ruby the first index is the start location and the second holds the count
array = ["Hello", "there", "AAA", 1, 2, 3] array[1] = "here" p array array = ["Hello", "there", "AAA", 1, 2, 3] array[1, 1] = "here" p array