Question d’entretien chez Arthrex

What does the Swift "mutating" attribute mean?

Réponse à la question d'entretien

Utilisateur anonyme

14 mai 2017

Much like “let” constant properties, values of structs are also typically immutable by default. A struct that has some value that changes should have that property marked as mutating.