Skip to content

Glossary: Swift Basics

closure

Also written: closures

A piece of code in braces that you can store in a constant or pass to a function, like a rule such as `{ $0 * 0.9 }` for taking 10% off.

Where the book teaches it

Related terms

trailing closurefunction type$0