I have questions on where to even start on this problem. The problem requires the following.
// We want to create a function that will add numbers together,
// when called in succession.
add(1)(2); // == 3
I have never seen functions be used in such a way, and I am currently at a loss of where to start. Furthermore, I tried to do some research on parameter chaining, but this is all I could find.
https://levelup.gitconnected.com/how-to-implement-method-chaining-in-c-3ec9f255972a
If you guys have any questions, I can edit my code or question. Any help is appreciated.