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.
Glossary: Swift Beyond the Basics
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.