If you have a 1-dimensional list which you're trying to treat like a multi-dimensional list, like what numpy does with ndarrays, is this the algorithm for accessing the actual index of the underlying 1-dimensional array?
def get(self, position):
x = 1
actual_position = 0
for idx, p in enumerate(reversed(position), 1):
actual_position += p * x
x *= self.dimensions[-idx]
return self._arr[actual_position]
this rewriting
