This may be some sort of weird longer shortcut, and please correct me if I'm mistaken in this train of thought...
I have a matrix of data that looks like:
unique_id | URL | other random data...
unique_id | URL | other random data...
unique_id | URL | other random data...
I want to be able to reference an item by either its URL, or its unique_id. Is there a fancy way to do this?
I suppose the cheating solution would be to just make two arrays, but is there is a better way?
unique_idtoother random data, then a second array that mapsurltounique_id. That is the purpose ofunique_ids: to provide a concise and efficient "handle" that represents a given record (row) of data.