Re: NSDictionary key types
Re: NSDictionary key types
- Subject: Re: NSDictionary key types
- From: David Duncan <email@hidden>
- Date: Thu, 6 Jan 2011 13:24:39 -0800
On Jan 6, 2011, at 1:17 PM, Jon Sigman wrote:
> Okay, I'm thoroughly confused now. What exactly is this hash value? The
> documentation just says its "an integer that can be used as a table address in a
> hash table structure." That doesn't mean much to me.
I would recommend that you read up on Hash Tables if you want all the glory details on what a hash value is.
The short of it is that its a value that allows you to quickly tell if something is worth looking at more closely for equality. As a real world example a hash code is equivalent to saying "this object is short, this object is tall" without breaking out a ruler to determine if they are the same length.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden