Skip to content

Glossary: Swift Basics

$0

Also written: $1

A ready-made name for a closure's first parameter (`$1` is the second), so short closures like `{ $0 * 2 }` need no named parameters.

Where the book teaches it

Related terms

closuretrailing closure