I have a problem where I have to set values in a multidimensional array
with a range of dimensions.
My function gets two arguments. First the array to set, and second an
array with indexes.
Lets say indexes are [1,2,3,4,5] and the name of the array is “arr”. I
then want to set the value of arr. How can I achive this?
I was thinking about a loop with pointers/references but that doesn’t
seem to exist in ruby? Are there other solutions?