[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception when using GSDictionary in corebase
From: |
David Chisnall |
Subject: |
Re: Exception when using GSDictionary in corebase |
Date: |
Fri, 20 May 2011 18:13:44 +0100 |
On 20 May 2011, at 17:20, Dr. H. Nikolaus Schaller wrote:
> Why aren't you using a NSArray/CFArray to simulate a NSSet? They are much
> more similar than
> dictionaries and sets.
Not really. A dictionary is just a set of pairs, where equality is defined by
comparing just the first elements of the pairs. An array is an ordered
collection where an elements can occur multiple times. A set is an unordered
collection where elements may occur at most once. They have very little in
common.
David
-- Sent from my brain