Say you have an array- and it looks like this
[[1,2,3]
[4,5,6]
[7,8,9]]
If at 5, how would I be able to get all the surrounding items into a list? Or even the surrounding indexes of items?
alternatively, if it was at the index of 4, how would I get the adjacent ones for that? Because of the missing left side?