1 2 3 4 5 6 7
# -*- mode: snippet -*- # name: accumulate w/ closure # key: acl # -- auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) { $3 });