O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Weak versus strong immutability

Sometimes, certain properties of an object can be immutable while the others may be mutable. These types of objects are called weakly immutable. Weak immutability means that we cannot change the immutable parts of the object state even though other parts of the object may be mutable. If all properties are immutable, then the object is immutable. If the whole object cannot be mutated after its creation, the object is called strongly immutable.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required