- Exercise

In this lesson, we'll solve an exercise.

We'll cover the following

Problem Statement

Write two sum functions which use the fold expressions to add all the values passed as arguments:

  • One function without an initial value.
  • One function with an initial value.

Get hands-on with 1000+ tech skills courses.