I'm trying to speed up a section of code that's called a LOT in the hope to cut a script run-time down.
Say I have a multidimensional array:
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
And a single-dimensional array of indices:
[2], [0], [1]
Without a loop, is there a way to retrieve those indices from the multi-dimensional array, i.e,:
[3], [4], [8]
Any help appreciated!