PROGRAMMING QUESTION that comes up all the time for me--I want to store value pairs so I can say A & B are linked, and I can query either A or B to get its partner. A dictionary is *sort of* like this, but looking up a key from a value is so inefficient... what would u do?
-
-
Als antwoord op @theBanov
Certainly not the safest thing, but when I've done that sort of thing I store two lists that always get updated together. So to find one object based on another I'd do something like: index = ListA.IndexOf (firstObject) linkedObject = ListB[index]
1 antwoord 0 retweets 2 vind-ik-leuks
Als antwoord op @njvas
I like this better than 2 dictionaries because the data isn’t duplicated
11:48 - 6 mrt. 2019
0 antwoorden
0 retweets
1 vind-ik-leuk
Het laden lijkt wat langer te duren.
Twitter is mogelijk overbelast of ondervindt een tijdelijke onderbreking. Probeer het opnieuw of bekijk de Twitter-status voor meer informatie.