Assigning to self within a mutating method in Swift

Mutating methods can assign an entirely new instance to the implicit self property.

Leave a Reply