I have a big 2-dimensional array A
, and also a flat array B
of two elements. How can I quickly access element from the A
array using numbers (coordinates) in B
? The only thing I can do now is:
A[B[0],B[1]]
But the path to these actual arrays through the names of members of my class is too long and dirty, and the actual array names are too long... so I wonder if its possible to ease the job.