Re: Linked List
Re: Linked List
- Subject: Re: Linked List
- From: Fritz Anderson <email@hidden>
- Date: Sat, 18 Sep 2010 18:36:42 -0500
On 18 Sep 2010, at 6:09 PM, email@hidden wrote:
> What is the Cocoa equivalent of a doubly linked list? Should I consider NSMutablearray as the analog?
Yes.
The Foundation data types are distinguished by what they _are_ (ordered collections, unordered collections, dictionaries, strings, dates, data buffers) and not how they are _implemented._ Foundation is free to select any of a number of internal implementations for those generic forms. In fact, it may _change_ the implementation of your collections behind your back, to preserve performance as the collections grow.
There's no "doubly-linked list" because you don't really want a doubly-linked list, you want an ordered collection.
— F
_______________________________________________
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