Skip to content

Glossary: Swift Basics

mutating

A keyword marking a struct or enum method that changes the value's own properties, like `receive` on `StockItem`. It can't be called on a `let` instance.

Where the book teaches it

Related terms

structvalue type