Skip to content

Glossary: Swift Beyond the Basics

copy-on-write

Copies of an array, dictionary or string share one block of storage until one of them changes, which makes passing collections cheap.

Where the book teaches it

Related terms

value semantics