...

/

The fold and scan Functions

The fold and scan Functions

Learn about fold and scan functions and see their visualizations.

We'll cover the following...

fold

If we use collection processing functions, we might recognize fold. It’s used to combine all the values in this collection into one by applying an operation that combines two values into one for each element (starting from the initial value).

For ...