What is the logic behind having a mutable and immutable versions of classes like NSArray, NSDictionary etc in Objective C?

Viewed 2638

Why do common collection classes in Objective C like NSString, NSArray, NSDictionary etc have a mutable as well as an immutable version. What is the logic behind defining them separately? Performance, memory management or anything else?

5 Answers
Related