NSDictionary: Two keys per value?

Posted by Derek on Stack Overflow See other posts from Stack Overflow or by Derek
Published on 2010-05-26T01:35:37Z Indexed on 2010/05/26 1:41 UTC
Read the original article Hit count: 277

Filed under:

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"]

© Stack Overflow or respective owner

Related posts about objective-c