NSDictionary: Two keys per value?
- by Derek
I would like to create an NSDictionary (or something similar) that has two keys per value. It will be for English/Spanish word look-up, where:
each value is an array containing all the conjugated verbs in English AND Spanish.
each (two) keys contains both an English infinitive (e.g. "to be", "to go") and a Spanish infinitive
This way, I can look a word up regardless of language based on the values having two keys per value.
Here's an example:
keys: "to want" or "querer"
values: ["want", "want", "wants", "want", "want", "quiero", "quieres", "quiere", "queremos", "quieren"]