Suppose I have m = {{1,2,3},{4,5,6},{7,8,9}} and another list q = {a,b}. I want to use q to extract element m[[a,b]]. So if a = b = 2, I'd get 5.
Certainly one can write m[[q[[1]],q[[2]]]], but is there a more compact expression? It seems that functionally I should be able to replace the head of q with something that would allow it to reference a part of list m. I've looked through the documentation and searched online but haven't found anything. Any suggestions would be appreciated.