Skip to content

Glossary: Swift Basics

reduce

A collection method that combines every item into one value, such as `prices.reduce(0, +)` to get a total.

Where the book teaches it

Related terms

mapclosure