Skip to content

Glossary: Swift Beyond the Basics

inout parameter

Also written: inout

A parameter whose changes reach the caller's variable. The caller passes it with `&`, as in `restock(&decaf, bags: 5)`.

Where the book teaches it

Related terms

value semantics