Reducing a List to a Single Value
Learn how to reduce a list to a single value.
We'll cover the following...
In the map
function, we just wrote the idea of applying a function to each element of a list independently.
Why do we need it ?
What should we do if we want to apply that function across the elements? How could we create an abstraction that would let us sum a list, find the product of its elements, or find the largest element?
The ...