📅  最后修改于: 2022-03-11 14:44:45.721000             🧑  作者: Mango
std::function sum;
sum = [term,next,&sum](int a, int b)->int {
if(a>b)
return 0;
else
return term(a) + sum(next(a),b);
};