DEV Community

Discussion on: Finding the coordinates of an element in a 2D array

Collapse
 
kbravh profile image
Karey Higuera

Good call, I hadn't worked under the assumption of needing to do multiple lookups. It reminds me of a tweet I saw of using coordinate pairs in tuples for dictionary lookups in Python twitter.com/nedbat/status/15225434...