Skip to content

Glossary: Kotlin Beyond the Basics

fold

Also written: reduce

Carries a running value through a collection, starting from a value you give. `reduce` starts from the first item.

Where the book teaches it

Related terms

groupBy