Skip to content

Glossary: Swift Beyond the Basics

reduce

A collection method that combines all items into one value, given a starting value and a closure: `$0` is the running total and `$1` the next item.

Where the book teaches it

Related terms

result builder